Problem/Motivation
The placeholder text in header search field has font-family of serif - looks like sans-serif would be better.
<input title="Enter the terms you wish to search for." placeholder="Search by keyword or phrase." data-drupal-selector="edit-keys" type="search" id="edit-keys--2" name="keys" value="" size="15" maxlength="128" class="form-search form-element form-element--type-search form-element--api-search">
D 9.1.0, Olivero 9.1.0 (not -dev!), Gin admin theme
Steps to reproduce
Logged in or not, click search icon in header bar and observe font of placeholder text
Proposed resolution
Change font family to sans-serif
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comments
Comment #2
jons commentedIf agreed, need to change .search-wide__wrapper input[type="search"] and .search-narrow__wrapper input[type="search"] in web/core/themes/olivero/css/components/header-search-wide.css & header-search-narrow.css respectively
Comment #3
komalk commentedLooking into this.
Comment #4
mherchelPer the designs, the font should be Lora (which is a serif). The CSS is currently
font-family: serif;, so it should definitely be updated. Good catch!Comment #5
komalk commentedWorked on #4.
Attached screenshot for reference.
Review the patch.
Comment #6
ranjith_kumar_k_u commentedThe above patch works as expected .RTBC.
Before patch

After patch

Comment #7
ranjith_kumar_k_u commentedComment #8
lauriiiWhere does the "georgia" fallback font come from?
Comment #9
jons commentedThanks @mherchel @ komalk, but personally I think sans-serif looks better (as in intial comment). Could the spec be changed if others agree?
Comment #10
djsagar commentedHi all,
I Used the default font-family for this please see and share your feedback.
Thanks!
Comment #11
jons commentedthanks @djsagar - looks good to me
Comment #12
Madhu kumar commentedApplied 3187908-5.patch working as per the requirement

Comment #13
Madhu kumar commentedComment #14
kleiton_rodrigues commentedwork on it!
Comment #15
kleiton_rodrigues commented@Madhu - looks good to me
+1 RTBC
Comment #16
lauriiiThe patch is failing on the CI because the CSS files are not built correctly. See https://www.drupal.org/node/3084859 for instructions on how to build the CSS files from PostCSS.
Comment #17
lauriiiWe should also discuss #9.
Comment #18
gauravvvv commentedI have changed the font-family to sans-serif as suggested in #9. I have provided the patch, please review it.
Comment #19
gauravvvv commentedComment #20
mherchelWe are not going to change the font in the design without designer approval.
Comment #22
kiran.kadam911Comment #23
vikashsoni commentedApplied patch in drupal-9.3.x-dev Successfully applied
@Gauravmahlawat Thanks for the patch
for ref sharing screenshot ....
Comment #25
capysara commentedAttached is a patch for 10.0.x that uses the css variable for the font.
Comment #26
capysara commentedAnd here is the 9.4.x patch
Comment #27
mherchel#25 and #26 look perfect. I worked with @capysara on this at the code sprint at Florida DrupalCamp.
Comment #28
alexpottCommitted d3cbad7 and pushed to 10.0.x. Thanks!
Committed and pushed ff07146556 to 9.4.x. Thanks!
Comment #31
volkswagenchickAdding the
FLDC2022tag so we can track issues we worked on during Florida DrupalCamp contrib day, thanks!