Skip to content

Commit

Permalink
(web-components) correct tabs font size and line height to base (micr…
Browse files Browse the repository at this point in the history
…osoft#18240)

* correct tabs font size and line height

* Change files
  • Loading branch information
chrisdholt authored and PeterDraex committed Aug 6, 2021
1 parent 1281a24 commit c5b8966
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "correct tabs font size and line height",
"packageName": "@fluentui/web-components",
"email": "chhol@microsoft.com",
"dependentChangeType": "patch"
}
8 changes: 4 additions & 4 deletions packages/web-components/src/tabs/tab/tab.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { SystemColors } from '@microsoft/fast-web-utilities';
import { display, focusVisible, forcedColorsStylesheetBehavior } from '@microsoft/fast-foundation';
import { heightNumber } from '../../styles';
import {
typeRampMinus1FontSize,
typeRampMinus1LineHeight,
typeRampBaseFontSize,
typeRampBaseLineHeight,
bodyFont,
designUnit,
density,
Expand All @@ -20,9 +20,9 @@ export const tabStyles = (context, definition) =>
${display('inline-flex')} :host {
box-sizing: border-box;
font-family: ${bodyFont};
font-size: ${typeRampMinus1FontSize};
font-size: ${typeRampBaseFontSize};
font-weight: 400;
line-height: ${typeRampMinus1LineHeight};
line-height: ${typeRampBaseLineHeight};
height: calc(${heightNumber} * 1px);
padding: 0 calc((6 + (${designUnit} * 2 * ${density})) * 1px);
color: ${neutralForegroundRest};
Expand Down

0 comments on commit c5b8966

Please sign in to comment.