2024-12-17 02:02:30 -05:00
|
|
|
:host {
|
2025-04-23 11:52:23 -04:00
|
|
|
--display: inline-flex;
|
2024-12-17 02:02:30 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.prefix,
|
|
|
|
|
.suffix,
|
|
|
|
|
.label {
|
2024-12-12 12:30:13 -05:00
|
|
|
display: inline-flex;
|
|
|
|
|
position: relative;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* We use a hidden input so constraint validation errors work, since they don't appear to show when used with buttons.
|
|
|
|
|
We can't actually hide it, though, otherwise the messages will be suppressed by the browser. */
|
|
|
|
|
.hidden-input {
|
|
|
|
|
all: unset;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
outline: dotted 1px red;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
z-index: -1;
|
|
|
|
|
}
|
2024-12-17 02:02:30 -05:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Checked buttons
|
|
|
|
|
*/
|
|
|
|
|
:host([checked]) {
|
2025-01-08 11:07:28 -06:00
|
|
|
--indicator-color: var(--wa-form-control-activated-color);
|
2024-12-17 02:02:30 -05:00
|
|
|
--indicator-width: var(--wa-border-width-s);
|
|
|
|
|
|
2025-01-08 11:07:28 -06:00
|
|
|
box-shadow: inset 0 0 0 var(--indicator-width) var(--indicator-color);
|
|
|
|
|
|
|
|
|
|
& button {
|
|
|
|
|
--border-color: var(--indicator-color);
|
|
|
|
|
}
|
2024-12-17 02:02:30 -05:00
|
|
|
}
|
2025-03-28 10:57:01 -04:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Active buttons
|
|
|
|
|
*/
|
|
|
|
|
button:active {
|
|
|
|
|
--text-color-active: var(--wa-form-control-activated-color);
|
|
|
|
|
--border-color-active: var(--wa-form-control-activated-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Horizontal radio pill buttons */
|
|
|
|
|
:host([data-wa-radio-horizontal][data-wa-radio-first]:not([data-wa-radio-last])) .wa-pill {
|
|
|
|
|
border-start-end-radius: 0;
|
|
|
|
|
border-end-end-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:host([data-wa-radio-horizontal][data-wa-radio-inner]) .wa-pill {
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:host([data-wa-radio-horizontal][data-wa-radio-last]:not([data-wa-radio-first])) .wa-pill {
|
|
|
|
|
border-start-start-radius: 0;
|
|
|
|
|
border-end-start-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Vertical radio pill buttons */
|
|
|
|
|
:host([data-wa-radio-vertical][data-wa-radio-first]:not([data-wa-radio-last])) .wa-pill {
|
|
|
|
|
border-end-start-radius: 0;
|
|
|
|
|
border-end-end-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:host([data-wa-radio-vertical][data-wa-radio-inner]) .wa-pill {
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:host([data-wa-radio-vertical][data-wa-radio-last]:not([data-wa-radio-first])) .wa-pill {
|
|
|
|
|
border-start-start-radius: 0;
|
|
|
|
|
border-start-end-radius: 0;
|
|
|
|
|
}
|