fix(ui): route component-site link chips through Button{Link} #480
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-416-link-chips"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements MAPPS-416 (follow-up to MAPPS-407 F10): routes the four remaining button-role link-styled controls in
src/components/through the sharedButton { variant: Link }, so no ad-hoc text-accent link copies remain.Change
company_picker,contact_picker,asset_picker), previously rawbuttonelements withtext-xs text-accent hover:opacity-90 px-2 py-1, now useButton { variant: ButtonVariant::Link, size: ButtonSize::Small }, gaining the shared focus ring and rounded shape while keeping their exact onclick behavior.context_filter_banner"Clear filter x" control also migrates. It relied on anaria_label(its visible text ends in a decorative "x"), which the sharedButtondid not expose, so this adds an optionalaria_label: Option<String>prop toButton(emitted asaria-label, mirroring the existingtitleprop exactly) and passes it through. That keeps the accessible name and eliminates the last raw copy.Verification
Diff-reviewed (no local cargo): a grep for
text-accent hover:opacity-90insrc/components/now returns zero raw chips; the other picker buttons (dropdown items, unassign) are a different pattern and out of scope; every addedButton/ButtonVariant/ButtonSizeimport is used (no orphans); the newaria_labelprop is additive and optional, so existingButtoncall sites are unaffected (omitted -> None -> attribute dropped, liketitle). No em-dash. CI runs fmt/clippy(-D warnings)/wasm-build/tests.#MAPPS-416
Implements MAPPS-416 (follow-up to MAPPS-407 F10). The three entity-picker "Change" chips and the context-filter-banner "Clear filter" control were raw button-role text-accent links; they now use Button { variant: Link, size: Small }. The banner control needs an accessible label (its visible text ends in a decorative multiplication sign), so this adds an optional aria_label prop to the shared Button (emitted as aria-label, mirroring the existing title prop) and routes the control through it, eliminating the last raw copy. #MAPPS-416