Skip to content

Commit

Permalink
Don't replace top/right/bottom/left declarations with inset (#375)
Browse files Browse the repository at this point in the history
Inset is only supported in iOS Safari 14.5+, which we can still
potentially support
  • Loading branch information
BPScott committed Mar 29, 2023
1 parent 9078861 commit 7a0dcd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/strong-wolves-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/stylelint-plugin': patch
---

Don't replace `top`/`right`/`bottom`/`left` declarations with `inset` shorthand as `inset` is only supported in iOS Safari 14.5+
4 changes: 1 addition & 3 deletions packages/stylelint-plugin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ module.exports = {
// Disallow longhand properties that can be combined into one shorthand property.
'declaration-block-no-redundant-longhand-properties': [
true,
{
ignoreShorthands: ['/^grid.*/'],
},
{ignoreShorthands: ['/^grid.*/', 'inset']},
],
// Disallow shorthand properties that override related longhand properties within declaration blocks.
'declaration-block-no-shorthand-property-overrides': true,
Expand Down

0 comments on commit 7a0dcd1

Please sign in to comment.