kopia lustrzana https://github.com/shoelace-style/shoelace
prettier
rodzic
0e5048989d
commit
c1eda83e5b
|
@ -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--first', index === 0);
|
||||||
button.toggleAttribute('data-sl-button-group__button--inner', index > 0 && index < slottedElements.length - 1);
|
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--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'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue