Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove "X" from the search field #512

Merged
merged 4 commits into from
Jan 17, 2022
Merged

Remove "X" from the search field #512

merged 4 commits into from
Jan 17, 2022

Conversation

huayunh
Copy link
Contributor

@huayunh huayunh commented Jan 17, 2022

Changes proposed in this Pull Request:

  • Remove the browser default "X" from the search field
  • Just a small thing but it bugs me a little...

Screenshots:

Before:

Screen.Recording.2022-01-17.at.12.49.04.PM.mov

After:

Screen.Recording.2022-01-17.at.12.49.48.PM.mov

To Test:

  • search for something
  • hover your mouse in the search field
  • ensure that the x does not appear

@jeffvg
Copy link
Contributor

jeffvg commented Jan 17, 2022

I think this is a chrome thing and I don't see it in FireFox. Right now in this branch I can search without seeing the double close now but the search stops and places a "?" in the url without the entire route search "?&search=theme" weird one

docit-search.mov

@@ -34,6 +34,13 @@ q:after {
padding: 0;
}

input[type='search']::-webkit-search-decoration,
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good to me.

@emclaug2
Copy link
Contributor

I think this is a chrome thing and I don't see it in FireFox. Right now in this branch I can search without seeing the double close now but the search stops and places a "?" in the url without the entire route search "?&search=theme" weird one

This is specific to firefox? If the search is being impacted in some way could you log an issue for this?

Approving this because the X is gone for me on Chrome.

@emclaug2 emclaug2 self-requested a review January 17, 2022 19:25
@huayunh
Copy link
Contributor Author

huayunh commented Jan 17, 2022

Great catch, jeff! Removed the "form" HTML tag that is clearly not compatible with single page apps

@huayunh huayunh merged commit 697d37d into dev Jan 17, 2022
@delete-merged-branch delete-merged-branch bot deleted the bug/x branch January 17, 2022 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants