Repository navigation
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
Summary
When the toggletip bubble does not fit above its toggle, the
flip-blockposition fallback places it below the toggle, but the arrow stays on the bubble's bottom edge pointing down, away from the toggle. This uses a CSS anchored container query (container-type: anchoredwith@container anchored(fallback: flip-block)) to move the arrow to the top edge and point it up when that fallback is active.src/wp-admin/css/wp-tooltip.css, guarded by@supports (container-type: anchored).flip-blockneeds handling:flip-inlineon a centredposition-area: topstill sits above the toggle.wpGetTooltiptests pass (22 tests); the new rules are present in the builtwp-tooltip-rtl.cssand the minified files.Trac ticket: https://core.trac.wordpress.org/ticket/66920
Testing
In Chrome or Edge 143+, open a screen that renders a toggletip, scroll so the toggle is at the very top of the viewport, and open it. The bubble appears below the toggle with the arrow on its top edge pointing up. With room above, the bubble and downward arrow are unchanged. Check RTL as well.
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Sonnet 5.5
Used for: Implementation and PR description.
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See https://github.com/WordPress/wordpress-develop/blob/trunk/README.md#contributing for more info.