1
1
mirror of https://github.com/primer/css.git synced 2024-09-20 13:17:29 +03:00

Merge pull request #1381 from primer/tobiasahlin/fix-stylelinting-on-main

Fix style lint errors introduced in new marketing type scale PR
This commit is contained in:
Jon Rohan 2021-05-05 09:59:11 -07:00 committed by GitHub
commit 134a345c13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

View File

@ -6,11 +6,11 @@
const versionDeprecations = {
'17.0.0': [
{
selectors: [
'.h000-mktg',
'.h00-mktg',
'.lead-mktg'
],
variables: ['$h000-size', '$h000-size-mobile'],
message: `This variable is deprecated, please refer to the Marketing Typography documentation.`
},
{
selectors: ['.h000-mktg', '.h00-mktg', '.lead-mktg'],
message: `This selector is deprecated, please refer to the Marketing Typography documentation.`
},
{

View File

@ -1,3 +1,4 @@
// stylelint-disable unit-no-unknown
// Typography
$marketing-font-path: "/fonts/" !default;

View File

@ -8,6 +8,7 @@
.h6-mktg {
font-family: $font-mktg;
font-feature-settings: $mktg-font-feature-settings;
// stylelint-disable-next-line primer/typography
font-weight: $mktg-header-weight-default !important;
letter-spacing: $mktg-header-spacing-default !important;
}