Skip to content

Remove border from search input on 404 page. Fixes #395#443

Merged
4thhubbard merged 1 commit into
WordPress:trunkfrom
prab18hat:fix-404-search-border
May 7, 2026
Merged

Remove border from search input on 404 page. Fixes #395#443
4thhubbard merged 1 commit into
WordPress:trunkfrom
prab18hat:fix-404-search-border

Conversation

@prab18hat

Copy link
Copy Markdown
Contributor

This PR removes the border from the search input field on the 404 error page, as requested in issue #395. The change is scoped only to the 404 page using body.error404, so it won’t affect search inputs elsewhere on the site.

What was changed:

Added a new SCSS partial: _404-search.scss targeting the search input on 404 pages.
Imported the partial in the main SCSS manifest so it’s included in the build.
Testing:

After building the theme, visit a 404 page and confirm the search input no longer has a border.
No global styles are affected.

@ryelle

ryelle commented Sep 19, 2025

Copy link
Copy Markdown
Contributor

Hi @prab18hat, thanks for working on this. There already is a 404 page partial, could you move your code to this file?

The focus style could also be updated to match the 404 pages on the rest of the sites, the code for that is here: https://github.com/WordPress/wporg-parent-2021/blob/c1c8d0ee4fd524b35ff885537d1fabd815bcc26e/source/wp-content/themes/wporg-parent-2021/sass/blocks/_search.scss#L132-L143

@prab18hat prab18hat force-pushed the fix-404-search-border branch from a885b71 to 4a8e0bb Compare September 20, 2025 10:23
@prab18hat

Copy link
Copy Markdown
Contributor Author

Hi @prab18hat, thanks for working on this. There already is a 404 page partial, could you move your code to this file?

The focus style could also be updated to match the 404 pages on the rest of the sites, the code for that is here: https://github.com/WordPress/wporg-parent-2021/blob/c1c8d0ee4fd524b35ff885537d1fabd815bcc26e/source/wp-content/themes/wporg-parent-2021/sass/blocks/_search.scss#L132-L143

Changes made as per feedback:

Moved search input styles to the existing 404 partial.
Updated focus style to match wporg-parent-2021 reference.
Removed the new partial and its import.
Verified no errors after build.
Ready for review!

@4thhubbard 4thhubbard left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @prab18hat! The changes in sass/page/_404.scss look great. Quick check: your description says you removed _404-search.scss, but it looks like that file is still being added in the diff, same rules end up in both files. Was that intentional, or did the force-push not catch the deletion?

@prab18hat

Copy link
Copy Markdown
Contributor Author

Thanks @prab18hat! The changes in sass/page/_404.scss look great. Quick check: your description says you removed _404-search.scss, but it looks like that file is still being added in the diff, same rules end up in both files. Was that intentional, or did the force-push not catch the deletion?

Thanks for catching that! The _404-search.scss file was meant to be deleted — looks like the diff didn’t reflect it after the force‑push. I’ve rechecked and pushed the corrected commit now. Everything should be clean and ready to merge.

@4thhubbard

Copy link
Copy Markdown

Going to merge this so it can ship. Quick note: _404-search.scss is still in the diff — looks like the force-push didn't catch the cleanup. Not a blocker since the rules are duplicated across both files (no functional impact), but a follow-up PR to remove it would be great when you have time.

@4thhubbard 4thhubbard merged commit b987e90 into WordPress:trunk May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants