Repository navigation
Fix: Prevent the sticky search bar from interfering with other interactive elements - #112
Conversation
Added 2 properties to the sticky-bottom class (style.css).
Added 2 properties to the sticky-bottom class (editor-style.css).
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
I tested this on Playground, and it works exactly as described: the sticky box shrinks to the button, everything beside it becomes clickable again, and the expanding search still opens fully within the corner. Thank you @ddewan-git! On the caveat: the pinned bar being right-aligned is the design, so pinning it in CSS is fine by me—no need for the extra Left/Center template parts. From the design side, this is good to go. |
Description
Fixes the sticky bottom search bar issue mentioned in #91, with a caveat.
Screenshots
Front end:
sticky-bottom-search-bar-testing-front-end.mp4
Site Editor:
sticky-bottom-search-bar-testing-site-editor.mp4
Site Editor (View change):
sticky-bottom-search-bar-testing-site-editor-view-change.mp4
Testing Instructions
Caveat/Limitation
In case a user edits the original search bar template part to position the search-bar (row) block on the left or center, their edit will not work.
Possible solution to the limitation
The inclusion of two additional template parts ('Search Bar Left' and 'Search Bar Center'), with appropriate margin-inline/margin-inline-start/margin-inline-end property values, may give users more flexibility.
Use of AI Tools
AI assistance: No