makeup-listbox-button
Advanced tools
Comparing version 0.5.3 to 0.5.4
@@ -153,7 +153,7 @@ "use strict"; | ||
const icon = e.detail.el.querySelector(listboxOptionIconSelector).cloneNode(true); | ||
let btnContent = this._buttonPrefix ? "".concat(this._buttonPrefix).concat(toValue) : toValue; | ||
let btnContent = this._buttonPrefix ? `${this._buttonPrefix}${toValue}` : toValue; | ||
if (icon) { | ||
switch (buttonValueType) { | ||
case "both": | ||
btnContent = "".concat(icon.outerHTML, " <span>").concat(btnContent, "</span>"); | ||
btnContent = `${icon.outerHTML} <span>${btnContent}</span>`; | ||
break; | ||
@@ -171,3 +171,3 @@ case "icon": | ||
const selectorText = (_e$detail$el$querySel = e.detail.el.querySelector(listboxOptionAriaLabelSelector)) === null || _e$detail$el$querySel === void 0 ? void 0 : _e$detail$el$querySel.innerText.trim(); | ||
this._buttonEl.setAttribute("aria-label", this._buttonPrefix ? "".concat(this._buttonPrefix, " ").concat(selectorText) : selectorText); | ||
this._buttonEl.setAttribute("aria-label", this._buttonPrefix ? `${this._buttonPrefix} ${selectorText}` : selectorText); | ||
} | ||
@@ -174,0 +174,0 @@ this._buttonLabelEl.innerHTML = btnContent; |
{ | ||
"name": "makeup-listbox-button", | ||
"description": "A JavaScript class representing an ARIA listbox button", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"main": "./dist/cjs/index.js", | ||
@@ -23,4 +23,4 @@ "module": "./dist/mjs/index.js", | ||
"dependencies": { | ||
"makeup-expander": "^0.11.2", | ||
"makeup-listbox": "^0.4.2" | ||
"makeup-expander": "^0.11.3", | ||
"makeup-listbox": "^0.4.3" | ||
}, | ||
@@ -36,3 +36,3 @@ "files": [ | ||
], | ||
"gitHead": "886b3aa580639f0721966474e63ec3b3781bb302" | ||
"gitHead": "d5eb699503d9b7f3eb9ff04379de5a38aa63096a" | ||
} |
17730
5
378
Updatedmakeup-expander@^0.11.3
Updatedmakeup-listbox@^0.4.3