Skip to content

Commit 196851c

Browse files
OrKoNDevtools-frontend LUCI CQ
authored andcommitted
Fix font-families for code and button
Inherited font-family properties are overridden by the UA stylesheet making the font-family used for these elements potentially undefined. Bug: 401489541 Change-Id: I6ec5b4d88728688d4f6c87fd3a06c09f11253994 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6346609 Reviewed-by: Kim-Anh Tran <[email protected]> Commit-Queue: Alex Rudenko <[email protected]>
1 parent c4e65a6 commit 196851c

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

front_end/ui/components/buttons/button.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ button {
4343
cursor: inherit;
4444
display: inline-flex;
4545
position: relative;
46+
font-family: var(--default-font-family);
4647
font-size: var(--sys-typescale-body4-size);
4748
font-weight: var(--ref-typeface-weight-medium);
4849
line-height: var(--sys-typescale-body4-line-height);

front_end/ui/components/buttons/textButton.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
margin: 2px;
99
height: 24px;
1010
font-size: 12px;
11+
font-family: var(--default-font-family);
1112
border: 1px solid var(--sys-color-tonal-outline);
1213
border-radius: 12px;
1314
padding: 0 12px;

front_end/ui/components/markdown_view/markdownView.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ devtools-code-block.animating {
6868

6969
.message code {
7070
color: var(--sys-color-on-surface);
71+
font-family: var(--monospace-font-family);
7172
font-size: 11px;
7273
user-select: text;
7374
cursor: text;

0 commit comments

Comments
 (0)