fix: ensure browser falls back to a sans-serif font

If `Verdana` isn't present, the system/browser default serif font would be used instead. Fixes https://github.com/Redocly/redoc/issues/1180#issuecomment-634545588
This commit is contained in:
James Harris 2020-08-20 00:20:08 +01:00 committed by GitHub
parent 1a7deec443
commit b5b123db9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ export const OperationBadge = styled.span.attrs((props: { type: string }) => ({
background-repeat: no-repeat;
background-position: 6px 4px;
font-size: 7px;
font-family: Verdana; // web-safe
font-family: Verdana, sans-serif; // web-safe
color: white;
text-transform: uppercase;
text-align: center;