current^2
Cory LaViska 2024-03-25 13:17:59 -04:00
rodzic 0e5048989d
commit c1eda83e5b
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -60,7 +60,10 @@ export default class SlButtonGroup extends ShoelaceElement {
button.toggleAttribute('data-sl-button-group__button--first', index === 0);
button.toggleAttribute('data-sl-button-group__button--inner', index > 0 && index < slottedElements.length - 1);
button.toggleAttribute('data-sl-button-group__button--last', index === slottedElements.length - 1);
button.toggleAttribute('data-sl-button-group__button--radio', button.tagName.toLowerCase() === 'sl-radio-button');
button.toggleAttribute(
'data-sl-button-group__button--radio',
button.tagName.toLowerCase() === 'sl-radio-button'
);
}
});
}