Skip to content

[6.x] Forms 2: Make the whole header tab clickable - #16172

Merged
jaygeorge merged 2 commits into
6.xfrom
16172-form-header-tabs-click-area
Dec 3, 2026
Merged

jaygeorge merged 2 commits into
6.xfrom
16172-form-header-tabs-click-area

Conversation

@jaygeorge

@jaygeorge jaygeorge commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Description of the Problem

Closes #16167

The form tabs in the header (Edit, Logic, Connect, Results, Configure) look like buttons, but only the label is clickable. The padding was on the li, and the link was inline, so clicking the space around a label did nothing.

What this PR Does

Moves the padding from the li onto the link and makes it a block, so the whole tab is clickable and the tabs touch, with no dead gaps between them. The focus outline now wraps the whole tab too.

The active pill is now sized as an inset of the link, so it looks the same as before.

How to Reproduce

  1. Open a form in the Control Panel, with the window wide enough for the tabs to show in the header.
  2. Click just beside, above or below a tab's label, e.g. Logic.
  3. Before: nothing happens. After: the tab switches.

- Move the tab padding from the li onto the link, so clicks beside the label work
- Size the active pill as an inset of the link, so it looks the same
The block link is a line-height tall rather than the text's height, so inset the pill by a little more
@jaygeorge
jaygeorge merged commit c2b853a into 6.x Dec 3, 2026
65 checks passed
@jaygeorge
jaygeorge deleted the 16172-form-header-tabs-click-area branch December 3, 2026 22:53
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.

Form tabs in the header: only the text is clickable

1 participant