This commit is contained in:
Mateusz Gruszczyński
2026-09-16 11:27:36 +02:00
parent 0d73844f23
commit 0bd33958da
25 changed files with 269 additions and 207 deletions
+2 -2
View File
@@ -128,7 +128,7 @@ function rebuildCustomSelectMenu(select, state) {
text.textContent = option.textContent || option.label || option.value || '—';
const check = document.createElement('b');
check.setAttribute('aria-hidden', 'true');
check.textContent = option.selected ? '✓' : '';
check.innerHTML = option.selected ? uiIcon('check') : '';
button.append(text, check);
button.addEventListener('click', event => {
@@ -310,7 +310,7 @@ function enhanceCustomSelect(select) {
const chevron = document.createElement('span');
chevron.className = 'custom-select-chevron';
chevron.setAttribute('aria-hidden', 'true');
chevron.textContent = '⌄';
chevron.innerHTML = uiIcon('chevron-down');
trigger.append(value, chevron);
wrapper.appendChild(trigger);
select.insertAdjacentElement('afterend', wrapper);