-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Fix placeholder font in Quicksearch #14154
Conversation
(Standard links)
|
This is cool. I wasn't aware that you can mix different fonts together like this to get icons + text. However, this raises a bigger question for me, which is that there is no default font for the CiviCRM menubar, or really anything in CiviCRM. As far as I can tell, CiviCRM's fonts just blow in the wind whichever way the CMS theme sets them. And IMO we should fix this! Where did you get the idea that the menu uses Veranda by default? |
This is what I get for only using Civi with Drupal. 😄 Definitely gets more complicated with that in mind. I guess if we want to be consistent, we'd not enforce a specific font there, and use whatever the CMS gives us, but I don't see a straightforward way of doing that if we want to use There are some bits in civicrm.css where we set Setting a default font would work as well, but that feels like a bigger change with some potential for headaches for people with custom themes. |
906b4a3
to
9f777a9
Compare
This is a fairly trivial change to ensure the placeholder text shown in the Quicksearch input uses a font that matches the rest of Civi slightly better than the user agent's default serif font.
9f777a9
to
9c504e4
Compare
@colemanw I've updated this to not enforce any specific font for the placeholder, but rather the It should not introduce any issues for theming as any CSS that would target that specific element would've already had to overwrite the existing |
I'm still a little troubled by the fact that civicrm has no font. But I seem to be in the minority, so let's put that debate aside for now and merge this. |
Overview
This is a fairly trivial change to ensure the placeholder text shown in the Quicksearch input uses the same font as the rest of the menu.
Before
The Quicksearch placeholder font is set to "FontAwesome", causing it to fall back to the default UA font for regular text:
After
Civi's default font is used: