Skip to content

Outline external link cards on title focus#2408

Merged
tf merged 1 commit intocodevise:masterfrom
tf:teaser-focus-outline
Apr 27, 2026
Merged

Outline external link cards on title focus#2408
tf merged 1 commit intocodevise:masterfrom
tf:teaser-focus-outline

Conversation

@tf
Copy link
Copy Markdown
Member

@tf tf commented Apr 27, 2026

Card-link cards use the title as the link. The native focus ring around the title text doesn't communicate that the whole card is the click target, and in variants without inner padding it gets clipped by the card's border-radius overflow. Move the ring to the card itself so keyboard focus matches the activation surface.

Expose the project's focus-outline value as a CSS custom property so other components can opt into a custom focus surface while inheriting the same color and the existing disable-on-mouse behavior.

Card-link cards use the title as the link. The native focus ring
around the title text doesn't communicate that the whole card is
the click target, and in variants without inner padding it gets
clipped by the card's border-radius overflow. Move the ring to the
card itself so keyboard focus matches the activation surface.

Expose the project's focus-outline value as a CSS custom property
so other components can opt into a custom focus surface while
inheriting the same color and the existing disable-on-mouse
behavior.
@tf tf added this to the v17.2 milestone Apr 27, 2026
@tf tf merged commit 9fd7f80 into codevise:master Apr 27, 2026
18 checks passed
@tf tf deleted the teaser-focus-outline branch April 29, 2026 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant