Opened 5 weeks ago
Last modified 3 days ago
#65032 reviewing defect (bug)
View transition admin bar quirks
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 7.0 | Priority: | normal |
| Severity: | normal | Version: | trunk |
| Component: | Administration | Keywords: | has-patch |
| Focuses: | ui | Cc: |
Description (last modified by )
Since 7.0 enabled view transitions in wp-admin (#64470, PR 10699), navigating between admin screens crossfades the entire admin sidebar into itself, even when its markup is nearly identical between the two pages.
Screencast: https://github.com/user-attachments/assets/7a48ae52-70d7-47ee-95e0-aec80463dcde
Steps to reproduce
- Run trunk in Chrome.
- Log in to wp-admin.
- Click between two screens whose sidebars are nearly identical (e.g. Dashboard → Posts → Pages).
Expected
Sidebar stays visually stable across the navigation — nothing in it has changed.
Actual
The whole sidebar crossfades between two identical snapshots.
Notes
Claude claims, to be verified:
src/wp-admin/css/view-transitions.cssgives each top-level menu item a stableview-transition-name, but#adminmenuitself does not — so the whole sidebar falls into the default root snapshot and crossfades on every navigation.- a likely fix is to give
#adminmenu(and possibly#adminmenuwrap) its ownview-transition-nameso it's treated as a single persistent element across navigations rather than part of the default root snapshot.
cc @westonruter @annezazu
Change History (18)
#5
in reply to:
↑ description
@
5 weeks ago
Replying to zieladam:
Screencast: https://github.com/user-attachments/assets/7a48ae52-70d7-47ee-95e0-aec80463dcde
This is a 404. Can you upload here?
#7
@
4 weeks ago
- Keywords reporter-feedback removed
Oh! It works on my end, even in private mode. How weird! I couldn't upload here because of the 10MB limit, but I've uploaded it to my site, which uploaded it to VideoPress. Hopefully this works:
https://videos.files.wordpress.com/Lnml4hak/574645931-7a48ae52-70d7-47ee-95e0-aec80463dcde.mp4
#8
@
4 weeks ago
@zieladam I'm struggling to see the exact issue from your video. I'm seeing a bit of a flicker in the admin bar, for example when navigating from the Dashboard to the Posts screen. Is that what you're referring to? I think this may be due to Command Palette node since it is revealed/populated with JavaScript with the page loads. We might want to hold painting until DOM load. See Anti-flickering in the View Transitions repo.
Closely related to this is the issue of Admin Notice instability (#45186, comment). This may be a workaround, however, for a more fundamental issue.
#9
@
4 weeks ago
- Focuses accessibility removed
I'm removing the accessibility focus from this; for accessibility purposes, this is resolved by the existing support for prefers-reduced-motion and otherwise doesn't have any additional impact beyond any other aspect of the view transition animation.
This ticket was mentioned in PR #11582 on WordPress/wordpress-develop by @dhrupo.
4 weeks ago
#10
- Keywords has-patch added
Fixes the admin menu flicker/crossfade during view transitions by giving the sidebar containers stable view-transition-name values.
## Testing
- Run trunk in Chrome.
- Log in to wp-admin.
- Navigate between screens with similar sidebars, for example
Dashboard -> Posts -> Pages. - Confirm the admin menu is no longer treated as part of the root transition snapshot.
## Notes
- Verified locally that
#adminmenuwrapand#adminmenubackreceive separate view-transition groups during navigation in Chrome via Playwright/runtime inspection.
#11
@
4 weeks ago
- Keywords needs-testing added
PR opened for review: https://github.com/WordPress/wordpress-develop/pull/11582
This patch gives #adminmenuwrap and #adminmenuback stable view-transition-name values in src/wp-admin/css/view-transitions.css so the admin menu is not left entirely in the root transition snapshot during admin navigation.
Testing performed:
- Reproduced on trunk in Chrome while navigating between
Dashboard -> Posts -> Pages. - Verified locally that the patched CSS is applied.
- Verified via Playwright/runtime inspection that
#adminmenuwrapand#adminmenubackreceive separate view-transition groups during navigation.
Keywords: has-patch needs-testing
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
3 weeks ago
#13
@
3 weeks ago
- Owner set to audrasjb
- Status changed from new to reviewing
We now have a PR that needs-testing.
I'm self assigning this ticket as it doesn't have any owner yet, but more tests are welcome! 🧪
#14
@
3 weeks ago
- Keywords needs-testing removed
Test Report
Description
✅ This report validates that the indicated patch works as expected.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/11582
Environment
- WordPress: 7.1-alpha-20260416.035027
- PHP: 7.4.33
- Server: PHP.wasm
- Database: WP_SQLite_Driver (Server: 8.0.38 / Client: 3.51.0)
- Browser: Chrome 147.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Five 1.4
- MU Plugins: None activated
- Plugins:
- Test Reports 1.2.1
Steps to Test
- Open the pull request: https://github.com/WordPress/wordpress-develop/pull/11582
- Click "Test this pull request with WordPress Playground." to launch WordPress Playground.
- Navigate between admin pages with similar sidebars: Dashboard > Posts > Pages
- Observe the sidebar during navigation transitions.
Actual Results
- ✅ Issue resolved with patch.
- The admin sidebar should remain visually stable during navigation.
Supplemental Artifacts
Before Patch: https://www.awesomescreenshot.com/video/51776620?key=76470c3ab3ab51bc2d86bdbab37c53cd
After Patch: https://www.awesomescreenshot.com/video/51776671?key=6079e6fdbfcfe82cd66485a3f9683a2d
#15
@
13 days ago
Test Report
Description
✅ This report validates that the indicated patch works as expected in a different PHP environment.
Environment
- WordPress: 7.1-alpha-20260416.035027
- PHP: 7.4.33
- Server: Apache
- Database: MySQL
- Browser: Chrome
- OS: Windows
- Theme: Twenty Twenty-Five
- MU Plugins: None activated
Steps to Test
# Applied the patch
# Navigated between admin pages with similar sidebars (Dashboard → Posts → Pages)
# Observed the sidebar during navigation transitions
Actual Results
✅ Issue resolved with the patch.
- The admin sidebar remains visually stable during navigation.
Expected Results
- The admin sidebar should remain visually stable during navigation.
Conclusion
- The patch works as expected on PHP 8.2
- Confirms compatibility beyond the originally tested PHP 7.4 environment
@huzaifaalmesbah commented on PR #11582:
13 days ago
#16
After applying this patch, I noticed an issue. you can check it in the video.
https://github.com/user-attachments/assets/c7f2b092-b5ca-45d2-b42d-83741f234b25
@dhrupo commented on PR #11582:
13 days ago
#17
Confirmed this is a valid issue. #adminmenuback is a fixed background layer, and giving it its own view-transition-name can produce a bad transition snapshot. I pushed c06aea7590 to narrow the patch so only #adminmenuwrap participates, while leaving the menu item transition names in place.
@jasonsa19 commented on PR #11582:
3 days ago
#18
In my 7.1-alpha-62328 test installation, I noticed visual bugs in the nav sidebar. The expanding sub-nav section seems to be a bit unsmooth and the sub-nav items are jumping a bit. Take a look:
https://github.com/user-attachments/assets/ce79c7a4-e7ce-4f69-b16e-aef97a1a5884
Google Chrome - Version 147.0.7727.138 on MacOS 26.4.1
Not working. Update the URL please