34 lines
971 B
CSS
34 lines
971 B
CSS
/* Adapted from HeroUI v3, ce90ea3. Copyright 2025 NextUI Inc.
|
|
* See third-party/HEROUI-LICENSE. Modified: hv- class prefix; Vue state adapters. */
|
|
/* Base label styles */
|
|
.hv-label {
|
|
/* Base styling */
|
|
@apply text-sm font-medium text-foreground;
|
|
}
|
|
|
|
/*
|
|
* Exclude group-level components (RadioGroup, CheckboxGroup) and radio/checkbox items
|
|
* to ensure asterisks only appear on atomic form field labels and group labels,
|
|
* not on individual options within those groups
|
|
*/
|
|
.hv-label--required,
|
|
[data-required="true"]:not([role="group"]):not([role="radiogroup"]):not(
|
|
[role="checkboxgroup"]
|
|
)
|
|
> .hv-label,
|
|
[data-required="true"]:not([data-slot="radio"]):not([data-slot="checkbox"])
|
|
> .hv-label {
|
|
@apply after:ms-0.5 after:text-danger after:content-['*'];
|
|
}
|
|
|
|
.hv-label--disabled,
|
|
[data-disabled="true"] .hv-label {
|
|
@apply status-disabled;
|
|
}
|
|
|
|
.hv-label--invalid,
|
|
[data-invalid="true"] .hv-label,
|
|
[aria-invalid="true"] .hv-label {
|
|
@apply text-danger;
|
|
}
|