Fixes #11 Second Parameter to false will not add spacer li
This commit is contained in:
@@ -178,9 +178,9 @@ module.exports = {
|
||||
})
|
||||
}
|
||||
},
|
||||
getCSS: (el, prop, b = false) {
|
||||
return window.getComputedStyle(el, null).getPropertyValue(prop);
|
||||
},
|
||||
// getCSS: (el, prop, b = false) {
|
||||
// return window.getComputedStyle(el, null).getPropertyValue(prop);
|
||||
// },
|
||||
init: (args = {}) => {
|
||||
const url = getURLVars();
|
||||
font.size = parseFloat(getComputedStyle(document.documentElement).fontSize.replace("px",""));
|
||||
|
@@ -24,9 +24,6 @@ core.init({
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
// deprecated switch handler
|
||||
const flipInfoSwitch = (e, s = e.currentTarget) => {
|
||||
|
||||
|
@@ -9,7 +9,7 @@ const click = new MouseEvent('click', {
|
||||
cancelable: true
|
||||
});
|
||||
|
||||
export function init(p = document) {
|
||||
export function init(p = document, s = true) {
|
||||
p.querySelectorAll(".tab-group, tabset").forEach(tabGroup => {
|
||||
|
||||
if (tabGroup.querySelector("[role=tablist]") === null) {
|
||||
@@ -36,7 +36,7 @@ export function init(p = document) {
|
||||
|
||||
const ul = document.createElement('ul');
|
||||
ul.setAttribute("role", "tablist");
|
||||
ul.innerHTML = `${tablist}<li role="separator" class="separator"></li>`;
|
||||
ul.innerHTML = s != true ? `${tablist}` : `${tablist}<li role="separator" class="separator"></li>`;
|
||||
tabGroup.insertBefore(ul, tabGroup.firstChild);
|
||||
|
||||
tabGroup.querySelectorAll('[role="tab"]').forEach(tab => {
|
||||
|
Reference in New Issue
Block a user