Skip to content

docs: record in surfaces.css that a page's focus style beats Leaf's ring on a commentable box - #6397

Merged
max-sixty merged 1 commit into
mainfrom
docs/focus-ring-decision-header
Nov 18, 2026
Merged

max-sixty merged 1 commit into
mainfrom
docs/focus-ring-decision-header

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Records #5525's decision in the header of browser/styles/components/surfaces.css: on a commentable control, focus alone stands at no weight, so a page's :focus { outline: none } or decorative outline replaces Leaf's ring, as an author's outline replaces the browser's own focus ring. The header now says the user chose this and why the !important alternative fails (it overrides the author's focus outline and a ring overlay's outline: none, drawing a second ring outside the overlay's clipping box). This is a comment-only change. The tests from #5524 and #5668 already expect this behavior.

Refs #5525

…ing on a commentable box

The maintainer kept #5524's rule in #5525: focus alone on a commentable
control stands at no weight, so a page's own focus style or decorative
outline replaces Leaf's ring there, as an author's outline replaces the
browser's native ring. The header now states that the user chose this and
why the `!important` alternative fails. No behavior changes; the tests from
#5524 and #5668 already expect this.

Refs #5525
@max-sixty
max-sixty merged commit be14e38 into main Nov 18, 2026
6 checks passed
@max-sixty
max-sixty deleted the docs/focus-ring-decision-header branch November 18, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants