Skip to content

fix(editor): match core rows and drop top-bar breakpoints - #292

Merged
nk-o merged 2 commits into
masterfrom
ui-review-fixes
Oct 23, 2026
Merged

nk-o merged 2 commits into
masterfrom
ui-review-fixes

Conversation

@nk-o

@nk-o nk-o commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Fixes from the editor UI review on WordPress 7.2-beta1. Each value below was measured with getComputedStyle in a live 7.2-beta1 editor against the core row it copies.

Effect rows. The grouped rows (the Transition row in the Reveal popover, and Pro's effect popovers, which use the same component) had a lighter border than core: rgba(0,0,0,.1) against core's #ddd on .block-editor-color-gradient-item. They now use #ddd, the first and last rows get core's 2px corner radius, and the toggle sets aria-expanded like core's row button. Row height (40px), padding, hover color, open background (#f0f0f0, theme color text) and the keyboard focus outline (1px theme color) already matched and are unchanged.

Core Background rows Ghost Kit before Ghost Kit after
Border 1px rgb(221,221,221) 1px rgba(0,0,0,.1) 1px rgb(221,221,221)
Outer radius 2px 2px (button 0) 2px
aria-expanded when open true missing true
Core Before After
Core Background panel rows Transition row open, before Transition row open, after

Pro note spacing. The Effects panel stacks its rows in one grid cell without the ToolsPanel gap, so the "Advanced effects are available in Ghost Kit Pro" line sat flush under an added Reveal row. It now gets the ToolsPanel row gap (16px) when something is above it.

Before After
Pro note flush under the Reveal row Pro note 16px under the Reveal row

Icon pack filter. The toggle group uses the public isAdaptiveWidth prop, so each option is as wide as its label (All 40px, Ghost Kit 80px, FontAwesome 109px instead of 95px each).

Before After
Equal-width pack options Pack options sized to their labels

Breakpoints leave the top bar. Ghost Kit no longer adds its breakpoints to the View menu, and the WordPress 6.6 toolbar switcher is gone, so 6.6 shows core's own preview dropdown again. The per-control responsive toggles in block settings still resize the canvas to the picked breakpoint. The hook that clears the Ghost Kit breakpoint when a core device is picked stays: without it, picking Tablet after a Mobile toggle kept the canvas at 375px. The new E2E test fails without that hook (Expected: "", Received: "sm").

Before After
View menu with Ghost Kit breakpoints View menu with core items only

Checked locally on 7.2-beta1 and 6.6.2: lint, PHPUnit (92 tests), build, and the responsive-switcher, effects and icon-picker E2E specs. On 6.6.2 one icon-picker test ("picks an icon with the keyboard and closes with Escape") fails at the Escape-clears-search step with and without this change. CI does not run E2E on 6.6.

nk-o added 2 commits October 24, 2026 01:47
- Effect row groups take the block editor's color-row border (#ddd)
  and radius, and the toggle reports aria-expanded like core.
- The Pro note in the Effects panel keeps the ToolsPanel 16px gap
  below an added Reveal row.
- The icon pack filter sizes each option to its label.
- Ghost Kit breakpoints leave the View menu and the WordPress 6.6
  toolbar. Block control toggles still preview the breakpoint, and a
  core device still turns that preview off.
isAdaptiveWidth inside a full-width group left an empty strip at the end; without isBlock the group is as wide as its options.
@nk-o
nk-o merged commit dceb40e into master Oct 23, 2026
7 checks passed
@nk-o
nk-o deleted the ui-review-fixes branch October 23, 2026 23:09
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