Skip to content

Commit

Permalink
Ensure all web components leverage the body font variable (#16013)
Browse files Browse the repository at this point in the history
* ensure all web components leverage the body font design token

* Change files
  • Loading branch information
chrisdholt authored Nov 20, 2020
1 parent 3aa57f1 commit b3be4d7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "ensure all web components leverage the body font design token",
"packageName": "@fluentui/web-components",
"email": "chhol@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-11-19T23:28:31.598Z"
}
1 change: 1 addition & 0 deletions packages/web-components/src/menu-item/menu-item.styles.ts
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

0 comments on commit b3be4d7

Please sign in to comment.