af6bfda3ee
Port the fixed HeroUI baseline tag/tag-group/error-message components onto the existing collection selection/registry protocols instead of a second state model. - TagGroup owns selection, disabled scope, removal requests and name/description wiring; TagGroupList renders the role=grid node and Tag renders role=row. - Removal has one path: a press inside the remove subtree is a removal request, so custom remove buttons work without a second event source; focus follows the next neighbour only after the item is actually gone. - ErrorMessage keeps the baseline slot marker and reuses the field part ids without gaining validation or aria-invalid semantics. - Ship the 12 tag-group and 2 error-message previews, both doc pages, navigation, a 35-case behavioural suite and independent tarball consumption checks.
16 lines
479 B
CSS
16 lines
479 B
CSS
/* Adapted from HeroUI v3, ce90ea3. Copyright 2025 NextUI Inc.
|
|
* See third-party/HEROUI-LICENSE. Modified: hv- class prefix. */
|
|
/* Base error message styles */
|
|
.hv-error-message {
|
|
@apply h-auto text-xs wrap-break-word text-danger;
|
|
|
|
/**
|
|
* Transitions
|
|
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
*/
|
|
transition:
|
|
opacity 150ms var(--ease-out),
|
|
height 350ms var(--ease-smooth);
|
|
@apply motion-reduce:transition-none;
|
|
}
|