From 324db1a11e43ba9d954dc522763faea19129ce6a Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Wed, 2 Nov 2022 15:05:16 -0400 Subject: [PATCH] docs: explicit stylelint color related rules (#16465) * docs: legacy stylelint color-function-notation * docs: stylelint number alpha-value-notation * docs: stylelint number hue-degree-notation --- docs/.stylelintrc.json | 6 +++--- docs/src/assets/scss/carbon-ads.scss | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/.stylelintrc.json b/docs/.stylelintrc.json index bbaca142688..3e559e97d33 100644 --- a/docs/.stylelintrc.json +++ b/docs/.stylelintrc.json @@ -1,9 +1,9 @@ { "extends": ["stylelint-config-standard-scss"], "rules": { - "alpha-value-notation": null, + "alpha-value-notation": "number", "at-rule-empty-line-before": null, - "color-function-notation": null, + "color-function-notation": "legacy", "color-hex-case": null, "custom-property-empty-line-before": null, "custom-property-pattern": null, @@ -12,7 +12,7 @@ }], "declaration-block-no-redundant-longhand-properties": null, "declaration-block-no-shorthand-property-overrides": null, - "hue-degree-notation": null, + "hue-degree-notation": "number", "indentation": 4, "max-line-length": null, "no-descending-specificity": null, diff --git a/docs/src/assets/scss/carbon-ads.scss b/docs/src/assets/scss/carbon-ads.scss index 0c8feb137cd..bd7ea8e660c 100644 --- a/docs/src/assets/scss/carbon-ads.scss +++ b/docs/src/assets/scss/carbon-ads.scss @@ -31,8 +31,8 @@ } .jumbotron #carbonads { - border: solid 1px hsla(250, 20%, 50%, .6); - background-color: hsla(0, 0%, 70%, .15); + border: solid 1px hsla(250, 20%, 50%, 0.6); + background-color: hsla(0, 0%, 70%, 0.15); } #carbonads a {