@aws-amplify/ui
Version:
`@aws-amplify/ui` contains low-level logic & styles for stand-alone usage or re-use in framework-specific implementations.
31 lines (30 loc) • 1.15 kB
CSS
.amplify-togglebuttongroup {
align-items: var(--amplify-components-togglebuttongroup-align-items);
align-content: var(--amplify-components-togglebuttongroup-align-content);
justify-content: var(--amplify-components-togglebuttongroup-justify-content);
gap: 0;
}
.amplify-togglebuttongroup .amplify-togglebutton:focus, .amplify-togglebuttongroup .amplify-togglebutton.amplify-togglebutton--pressed {
z-index: 2;
}
.amplify-togglebuttongroup .amplify-togglebutton:not(:first-of-type) {
margin-inline-start: calc(-1 * var(--amplify-components-button-border-width));
border-start-start-radius: 0;
border-end-start-radius: 0;
}
@supports not (border-start-start-radius: 0) {
.amplify-togglebuttongroup .amplify-togglebutton:not(:first-of-type) {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
}
.amplify-togglebuttongroup .amplify-togglebutton:not(:last-of-type) {
border-start-end-radius: 0;
border-end-end-radius: 0;
}
@supports not (border-end-end-radius: 0) {
.amplify-togglebuttongroup .amplify-togglebutton:not(:last-of-type) {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
}