Make WordPress Core

Opened 5 weeks ago

Last modified 4 weeks ago

#65071 accepted defect (bug)

Focus border styling breaks slug input layout in Classic Editor

Reported by: dhruvang21's profile dhruvang21 Owned by: joedolson's profile joedolson
Milestone: Awaiting Review Priority: normal
Severity: normal Version: trunk
Component: Editor Keywords: has-patch
Focuses: ui, css Cc:

Description

While testing the changes introduced in PR: https://github.com/WordPress/wordpress-develop/pull/11551, I came across a UI issue in the Classic Editor related to the post slug (permalink) editing field.

When the slug input receives focus, the focus border appears larger than expected and causes the layout to break.

Steps to Reproduce:

  • Go to Posts → Add New (or edit an existing post)
  • Click on the permalink “Edit” button
  • Focus on the slug input field
  • Observe the input field styling

Expected Behavior:
The focus state should not alter the layout or dimensions of the input field. The slug field should remain properly aligned within its container.

Actual Behavior:
On focus:

  • The border/outline appears thicker or offset
  • The input visually overflows or misaligns
  • The slug field appears “broken” within the layout

Attachments (1)

Screenshot from 2026-04-14 15-42-08.png (103.9 KB) - added by dhruvang21 5 weeks ago.

Download all attachments as: .zip

Change History (4)

This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.


5 weeks ago

#2 @joedolson
5 weeks ago

  • Focuses accessibility removed
  • Owner set to joedolson
  • Status changed from new to accepted

I wouldn't agree that the focus is causing a misalignment; but the bottom edge of the focus state is being hidden, resulting in an unexpected appearance.

This is not an accessibility issue; the focus state is still adequate for accessibility purposes, so I'm removing the accessibility keyword. I'll take ownership, anyway, however.

This ticket was mentioned in PR #11595 on WordPress/wordpress-develop by @umesh.nevase.


4 weeks ago
#3

  • Keywords has-patch added

This PR fixes:

  1. The box shadow on focus the input of edit slug on classic editor.
  2. the OK button alignment on editing the slug on classic editor.

Trac ticket: https://core.trac.wordpress.org/ticket/65071

https://github.com/user-attachments/assets/58684cb2-e765-48e9-aa21-4538dd2f2746

Note: See TracTickets for help on using tickets.