Skip to content

Commit

Permalink
fix(type): update reset to use relative unit (#5541)
Browse files Browse the repository at this point in the history
* fix(type): update reset to use relative unit

* chore(format): run prettier

Co-authored-by: TJ Egan <[email protected]>
  • Loading branch information
joshblack and tw15egan committed Mar 10, 2020
1 parent dfc6956 commit bfb929f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/type/scss/_reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
@import 'styles';

/// Include a type reset for a given body and mono font family
/// @param {Number} $base-font-size [$carbon--base-font-size] - The base font size for your document
/// @param {String} $body-font-family [carbon--font-family('sans')] - The font family used on the `<body>` element
/// @param {String} $mono-font-family [carbon--font-family('mono')] - The font family used on elements that require mono fonts, like the `<code>` element
/// @access public
/// @group @carbon/type
@mixin carbon--type-reset(
$base-font-size: $carbon--base-font-size,
// TODO: remove in next major release. This has been replaced with 100%
$base-font-size: $carbon--base-font-size,
$body-font-family: carbon--font-family('sans'),
$mono-font-family: carbon--font-family('mono')
) {
html {
font-size: $base-font-size;
font-size: 100%;
}

body {
Expand Down

0 comments on commit bfb929f

Please sign in to comment.