This commit is contained in:
konnorrogers
2024-03-25 13:19:57 -04:00
parent f10282f1e6
commit d0204c2297

View File

@@ -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'
);
}
});
}