We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f2e164 commit c737fe1Copy full SHA for c737fe1
src/tabs.js
@@ -325,9 +325,11 @@ UI.tabs.tabWidget = function (options) {
325
return box
326
327
function addCancelButton (tabContainer) {
328
- const extraTab = dom.createElement('td')
+ const extraTab = dom.createElement(tabElement)
329
extraTab.classList.add('unstyled')
330
- extraTab.style.textAlign = 'right'
+ if (tabElement === 'td') {
331
+ extraTab.style.textAlign = 'right'
332
+ }
333
const cancelButton = UI.widgets.cancelButton(dom, onClose)
334
extraTab.appendChild(cancelButton)
335
tabContainer.appendChild(extraTab)
0 commit comments