Bug 27566: Add generic font family to prevent unstyled select tags

This patch adds a default font family "sans-serif" to the OPAC CSS as a
workaround for this Firefox bug:

font-family isn't honored in `<option>` element within `<select>`
dropdown
https://bugzilla.mozilla.org/show_bug.cgi?id=1536148

To test, apply the patch and rebuild the OPAC CSS
(https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client).

 - Open the OPAC main page in Firefox.
 - Click the search type dropdown. The options should be styled using
   your system's default sans-serif font rather than a serif font.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Henry Bolshaw <bolshawh@parliament.uk>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit dee61a7c3e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Owen Leonard 2021-01-28 16:37:13 +00:00 committed by Fridolin Somers
parent 5b4dd72d3a
commit d736d8908c
1 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
@font-face {
font-family: "NotoSans";
font-family: "NotoSans, sans-serif";
font-style: normal;
font-weight: 400;
src: local("Noto Sans Regular"),
@ -8,7 +8,7 @@
}
@font-face {
font-family: "NotoSans";
font-family: "NotoSans, sans-serif";
font-style: bold;
font-weight: 700;
src: local("Noto Sans Bold"),
@ -17,7 +17,7 @@
}
@font-face {
font-family: "NotoSans";
font-family: "NotoSans, sans-serif";
font-style: italic;
font-weight: 400;
src: local("Noto Sans Italic"),
@ -26,7 +26,7 @@
}
@font-face {
font-family: "NotoSans";
font-family: "NotoSans, sans-serif";
font-style: italic;
font-weight: 700;
src: local("Noto Sans Bold Italic"),