Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #13 from Shopify/adds-support-for-reduced-motion
Browse files Browse the repository at this point in the history
Adds support for prefers reduced motion
  • Loading branch information
darrenhebner authored Aug 25, 2017
2 parents fbe0409 + 4ae931c commit 7585549
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Updated [stylelint-scss](https://github.com/kristerkari/stylelint-scss) from `1.4.x` to `^2.0.1`
* Replaced deprecated `scss/at-mixin-no-argumentless-call-parentheses` rule with its equivalent `scss/at-mixin-argumentless-call-parentheses`
* Updated `eslint-plugin-shopify` to the latest version, and updated ESLint to the appropriate version
* Updates `media-feature-name-no-unknown` to ignore `prefers-reduced-motion`

## [2.0.1] - 2017-07-28

Expand Down
4 changes: 3 additions & 1 deletion rules/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ module.exports = {
// Specify lowercase or uppercase for media feature names.
'media-feature-name-case': 'lower',
// Disallow unknown media feature names.
'media-feature-name-no-unknown': true,
'media-feature-name-no-unknown': [true, {
ignoreMediaFeatureNames: ['prefers-reduced-motion'],
}],
// Disallow vendor prefixes for media feature names.
'media-feature-name-no-vendor-prefix': true,
// Specify a whitelist of allowed media feature names
Expand Down

0 comments on commit 7585549

Please sign in to comment.