Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure all web components leverage the body font variable #16013

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
ensure all web components leverage the body font design token
  • Loading branch information
chrisdholt committed Nov 20, 2020
commit 708920b5927da458355c2f0ad8aa1a2ebe923b6d
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const MenuItemStyles = css`
color: ${neutralForegroundRestBehavior.var};
fill: ${neutralForegroundRestBehavior.var};
cursor: pointer;
font-family: var(--body-font);
font-size: var(--type-ramp-base-font-size);
line-height: var(--type-ramp-base-line-height);
border-radius: calc(var(--corner-radius) * 1px);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { heightNumber, neutralOutlineRestBehavior } from '../styles';

export const SliderLabelStyles = css`
${display('block')} :host {
font-family: var(--body-font);
}
.root {
position: absolute;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const TextFieldStyles = css`
border: none;
padding: 0 calc(var(--design-unit) * 2px + 1px);
color: ${neutralForegroundRestBehavior.var};
font-family: inherit;
font-size: var(--type-ramp-base-font-size);
line-height: var(--type-ramp-base-line-height);
}
Expand Down