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: |
|
Owned by: |
|
|---|---|---|---|
| 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)
Change History (4)
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
5 weeks ago
#2
@
5 weeks ago
- Focuses accessibility removed
- Owner set to joedolson
- Status changed from new to accepted
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:
- The box shadow on focus the input of edit slug on classic editor.
- the OK button alignment on editing the slug on classic editor.
Trac ticket: https://core.trac.wordpress.org/ticket/65071
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.