Skip to content

[6.x] Match the asset table's file name focus outline to entry titles - #16011

Merged
jaygeorge merged 2 commits into
6.xfrom
16011-asset-name-focus-outline
Nov 23, 2026
Merged

jaygeorge merged 2 commits into
6.xfrom
16011-asset-name-focus-outline

Conversation

@jaygeorge

@jaygeorge jaygeorge commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Description of the Problem

When you tab to a file name in the assets table, its focus outline sits tight and square against the text. Entry titles in a collection's listing get an outline that sits a few pixels out with slightly rounded corners, so the two tables don't match.

image

What this PR Does

Gives the asset file name the same focus outline as an entry title: the same offset, with slightly rounded corners while it has focus.

Entry titles are links, so they pick this up from the .main-content a rule in base.css. The file name is a button, so it was getting the default outline. I've set it on the button itself rather than widening that rule, because the same table shows up in the Browse Assets stack on an assets field, which sits outside .main-content. This way it matches in both places.

Before / After

image

How to Reproduce

  1. Go to Assets and open a container with some files in it
  2. Tab through the table until a file name has focus
  3. Compare it with an entry title in a collection's listing

@jaygeorge
jaygeorge merged commit c90e43e into 6.x Nov 23, 2026
66 checks passed
@jaygeorge
jaygeorge deleted the 16011-asset-name-focus-outline branch November 23, 2026 14:56
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.

1 participant