Skip to content

Fix: Prevent the sticky search bar from interfering with other interactive elements - #112

Merged
carolinan merged 2 commits into
WordPress:trunkfrom
ddewan-git:ddewan-git-sticky-bottom-search-bar
Sep 30, 2026
Merged

carolinan merged 2 commits into
WordPress:trunkfrom
ddewan-git:ddewan-git-sticky-bottom-search-bar

Conversation

@ddewan-git

@ddewan-git ddewan-git commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor
  • Added 2 properties to the sticky-bottom class (style.css).
  • Added 2 properties to the sticky-bottom class (editor-style.css).

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

  1. Visit a page.
  2. Click on the sticky search icon at the bottom.
  3. Scroll down to a clickable element that is in parallel with the search bar.
  4. Confirm that the element is clickable, without any interference from the search bar.
  5. For Site Editor testing, click "Edit Site".
  6. Click on the Search Bar template part.
  7. Click on any block adjacent to the search bar.
  8. Confirm that the block is clickable/customizable, without any interference from the search bar.
  9. For responsive design (Site Editor) testing, click the View button (the desktop icon) in the top right corner of the editor toolbar and switch to Tablet / Mobile view.
  10. Click on the Search Bar template part.
  11. Click on any block adjacent to the search bar.
  12. Confirm that the block is clickable/customizable, without any interference from the search bar.

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

Added 2 properties to the sticky-bottom class (style.css).
Added 2 properties to the sticky-bottom class (editor-style.css).
@github-actions github-actions Bot added [Area] Global Styles Issues or PRs that touch theme.json or the base stylesheet. [Area] Block Styles Issues or PRs that touch custom block style CSS (glossy button, animated gradient, editor style). labels Sep 25, 2026
@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: ddewan-git <ddewan@git.wordpress.org>
Co-authored-by: henriqueiamarino <iamarinoh@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@henriqueiamarino

Copy link
Copy Markdown
Contributor

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.

@carolinan
carolinan merged commit 41a29b6 into WordPress:trunk Sep 30, 2026
9 checks passed
@ddewan-git
ddewan-git deleted the ddewan-git-sticky-bottom-search-bar branch October 8, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Area] Block Styles Issues or PRs that touch custom block style CSS (glossy button, animated gradient, editor style). [Area] Global Styles Issues or PRs that touch theme.json or the base stylesheet.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants