Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export function tabWidget (options: TabWidgetOptions) {
const navElement = rootElement.appendChild(dom.createElement('nav'))
navElement.setAttribute('style', style.tabsNavElement)

const mainElement = rootElement.appendChild(dom.createElement('main'))
const mainElement = rootElement.appendChild(dom.createElement('div'))

mainElement.setAttribute('style', style.tabsMainElement) // override tabbedtab.css
const tabContainer = navElement.appendChild(dom.createElement('ul'))
Expand Down Expand Up @@ -333,7 +333,7 @@ export function tabWidget (options: TabWidgetOptions) {
function getOrCreateContainerElement (ele: TabElement): ContainerElement {
const bodyMain = ele.bodyTR?.children[0] as ContainerElement
if (bodyMain) return bodyMain
const newBodyMain = ele.bodyTR!.appendChild(dom.createElement('main'))
const newBodyMain = ele.bodyTR!.appendChild(dom.createElement('div'))
newBodyMain.setAttribute('style', bodyMainStyle)
return newBodyMain
}
Expand Down