You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code snippets in the Documentation at https://www.elastic.co/guide/index.html don't have a correct fallback font - font that would be used if none of the monospaced fonts is present. Right now, the fallback is sans-serif, but should be monospace.
In the case of Chrome OS, the code snippet would have sans-serif font. It would look like:
Expected behavior
Expected is to have a monospace fallback. It would look like this:
This is easy to fix. Change the style from:
#guide .prettyprintspan {
font-family: Consolas,Menlo,DejaVu Sans Mono,Bitstream Vera Sans Mono,Lucida Console;
}
To:
#guide .prettyprintspan {
font-family: Consolas,Menlo,DejaVu Sans Mono,Bitstream Vera Sans Mono,Lucida Console,monospace;
}
This would use a Fixed-width font (monospace) based on the OS. In the case of Chrome OS, it would be Cousine. Elsewhere it could be Courier New. Right now, the fallback is sans-serif because that's how it's defined in:
guide* {
font-family: Inter,sans-serif;
}
Your Environment
os: Chrome OS, Version 80
The text was updated successfully, but these errors were encountered:
🐛 Bug Report
Code snippets in the Documentation at https://www.elastic.co/guide/index.html don't have a correct fallback font - font that would be used if none of the monospaced fonts is present. Right now, the fallback is
sans-serif
, but should bemonospace
.To Reproduce
Open:
In the case of Chrome OS, the code snippet would have
sans-serif
font. It would look like:Expected behavior
Expected is to have a
monospace
fallback. It would look like this:This is easy to fix. Change the style from:
To:
This would use a Fixed-width font (monospace) based on the OS. In the case of Chrome OS, it would be
Cousine
. Elsewhere it could beCourier New
. Right now, the fallback issans-serif
because that's how it's defined in:Your Environment
The text was updated successfully, but these errors were encountered: