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

Search icon (magnifying glass) is not rendered properly in FF #1256

Closed
1 of 2 tasks
Tracked by #1171
sophokles73 opened this issue Oct 6, 2022 · 11 comments · Fixed by #1247 or #1279
Closed
1 of 2 tasks
Tracked by #1171

Search icon (magnifying glass) is not rendered properly in FF #1256

sophokles73 opened this issue Oct 6, 2022 · 11 comments · Fixed by #1247 or #1279
Assignees

Comments

@sophokles73
Copy link

sophokles73 commented Oct 6, 2022

The search input field's magnifying glass is not rendered as the magnifying glass icon but as the literal text fl in my browser. See attached screenshot

image

This seems to be due to the order in which the font-family is defined for the .td-search-input class in _search.scss

.td-search-input {
    ...
    font-family: $font-family-base, $font-awesome-font-name;
}

where the font awesome font is added to the end of the list but one of the fonts before font awesome in the list already contains a value for the  entity.


Edit (@chalin):

@sophokles73
Copy link
Author

BTW, this occurs when I open the Docsy user guide at https://www.docsy.dev/docs/

My browser is Firefox 105.0.2 on Ubuntu 22.04

@LisaFC
Copy link
Collaborator

LisaFC commented Oct 6, 2022

Huh, that's weird. It's showing up as the magnifying glass icon for me (Chrome on Mac). Any other users with other browsers/OS seeing it? @chalin any ideas?

@sophokles73
Copy link
Author

It also displays properly on my Android 11 based smart phone running Firefox ...

@chalin
Copy link
Collaborator

chalin commented Oct 6, 2022

Thanks @sophokles73.

Which version of Docsy are you using?

@chalin
Copy link
Collaborator

chalin commented Oct 6, 2022

Ah, I'm seeing that problem in FF 105.0.2 under macOS.
No issue in Chrome or Safari under macOS or iOS.

@chalin chalin self-assigned this Oct 7, 2022
@chalin chalin changed the title Search icon (magnifying glass) is not rendered properly Search icon (magnifying glass) is not rendered properly in FF Oct 7, 2022
@chalin
Copy link
Collaborator

chalin commented Oct 7, 2022

Helvetica Neue is the culprit under FF. The search box will need to be reworked to fix this. I'll give it a try tomorrow or this w/e. @geriom - do you want to wait for this fix?

@sophokles73
Copy link
Author

@chalin I am using the HEAD revision of the main branch.

@chalin
Copy link
Collaborator

chalin commented Oct 7, 2022

This is going to be more work than I'd like to put in before the next release, so in the queue it goes for me. I think that FF is probably doing things correctly. I have two fixes in mind, one that I've tested but requires more work. The other is a patch that I'll try to get in before the next release if I have the time.

@chalin
Copy link
Collaborator

chalin commented Oct 7, 2022

Hey, all: there was a solution that pre-dated even this issue! :)

@chalin
Copy link
Collaborator

chalin commented Oct 13, 2022

I've confirmed that the fix (#1247) works in FF as well as Chrome and Safari.

@chalin
Copy link
Collaborator

chalin commented Oct 13, 2022

Reopening since this needs to be fixed for offline search too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants