Skip to content

Commit

Permalink
fix(filter): Introduce mono font styling for LogLevelChip with Roboto…
Browse files Browse the repository at this point in the history
… Mono fallback (fixes #154). (#156)
  • Loading branch information
junhaoliao authored Dec 31, 2024
1 parent af322a6 commit 8041816
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<link rel="preconnect" crossorigin href="https://fonts.gstatic.com">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap">
</head>
<body>
<div id="root"></div>
Expand Down
3 changes: 3 additions & 0 deletions src/components/StatusBar/LogLevelSelect/LogLevelChip.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
.log-level-chip {
/* stylelint-disable-next-line custom-property-pattern */
--Chip-radius: 0;

font-family: var(--ylv-ui-mono-font-family), monospace !important;
font-weight: 600 !important;
}

.log-level-chip span {
Expand Down
2 changes: 2 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ html {
/* font-family globals */
--ylv-ui-font-family: -apple-system, "BlinkMacSystemFont", system-ui, "Ubuntu", "Droid Sans",
"Inter";
--ylv-ui-mono-font-family: "SF Mono", monaco, menlo, "Ubuntu Mono", "Liberation Mono",
"DejaVu Sans Mono", "Roboto Mono";

/* size globals */
--ylv-status-bar-height: 32px;
Expand Down

0 comments on commit 8041816

Please sign in to comment.