Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Polaris Lighthouse] Fix z-index declaration-property-value-allowed-list bug #7898

Merged
merged 1 commit into from
Dec 13, 2022

Conversation

sophschneider
Copy link
Contributor

WHY are these changes introduced?

Fixes #7865

(see issue)

WHAT is this pull request doing?

before, stylelint polaris would report z-index: var(--p-z-9) even though it is valid because we were looking for the token name instead of var(tokenName). This wraps the tokens with var

@github-actions
Copy link
Contributor

github-actions bot commented Dec 12, 2022

size-limit report 📦

Path Size
polaris-react-cjs 211.1 KB (0%)
polaris-react-esm 136.32 KB (0%)
polaris-react-esnext 192.17 KB (0%)
polaris-react-css 42.12 KB (0%)

Copy link
Member

@chloerice chloerice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this Sophie!! :shipit:

@sophschneider sophschneider merged commit 9206b7b into main Dec 13, 2022
@sophschneider sophschneider deleted the sophie/bug-stylelint branch December 13, 2022 16:53
mrcthms pushed a commit that referenced this pull request Dec 14, 2022
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @shopify/polaris@10.16.0

### Minor Changes

- [#7893](#7893)
[`9e617c4d9`](9e617c4)
Thanks [@yurm04](https://github.com/yurm04)! - Updating TextField and
Select border colors to be compliant with accessibility color contrast
guidance


- [#7910](#7910)
[`5a4faf821`](5a4faf8)
Thanks [@henryyi](https://github.com/henryyi)! - Added support for hover
delay before displaying tooltip

### Patch Changes

- [#7890](#7890)
[`53d836dc2`](53d836d)
Thanks [@mrcthms](https://github.com/mrcthms)! - Fixed display bug with
`BulkActions` when content in the table changes at the same time the
bulk actions bar is visible


- [#7846](#7846)
[`65131df18`](65131df)
Thanks [@qt314](https://github.com/qt314)! - - Changed border radius of
`focus-ring` to use shape tokens instead of adding an extra `1px`
- Updated `TextField` placeholder text to not change to a custom color
on error
    -   Delete an unused class in the `DataTable` and `IndexTable`
    -   Replace some `px` values with tokens
    -   Add some stylelint ignore context comments


- [#7891](#7891)
[`ff82bdb18`](ff82bdb)
Thanks [@mrcthms](https://github.com/mrcthms)! - Updated the colors of
the borders of the buttons in the `BulkActions` component

## @shopify/plugin-polaris@0.0.21

### Patch Changes

-   Updated dependencies \[]:
    -   @shopify/polaris-migrator@0.10.1

## @shopify/polaris-migrator@0.10.1

### Patch Changes

- Updated dependencies
\[[`4b96147b3`](4b96147),
[`c8a294f51`](c8a294f),
[`6cd75fd9a`](6cd75fd),
[`bdf04a289`](bdf04a2),
[`9206b7b13`](9206b7b)]:
    -   @shopify/stylelint-polaris@5.0.1

## @shopify/stylelint-polaris@5.0.1

### Patch Changes

- [#7866](#7866)
[`4b96147b3`](4b96147)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Updated
`stylelint-polaris` to allow disabling specific coverage rules instead
of entire categories


- [#7906](#7906)
[`c8a294f51`](c8a294f)
Thanks [@qt314](https://github.com/qt314)! - Fixed config atRule and
function regex to match whole word


- [#7868](#7868)
[`6cd75fd9a`](6cd75fd)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Update
`package.json` to define a single entry point


- [#7696](#7696)
[`bdf04a289`](bdf04a2)
Thanks [@chloerice](https://github.com/chloerice)! - Implemented custom
message configuration support for polaris/coverage plugin


- [#7898](#7898)
[`9206b7b13`](9206b7b)
Thanks [@qt314](https://github.com/qt314)! - Bug fix to wrap z-index
'declaration-property-value-allowed-list' token value with "var"

## polaris.shopify.com@0.27.2

### Patch Changes

- Updated dependencies
\[[`53d836dc2`](53d836d),
[`9e617c4d9`](9e617c4),
[`5a4faf821`](5a4faf8),
[`65131df18`](65131df),
[`ff82bdb18`](ff82bdb)]:
    -   @shopify/polaris@10.16.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gwyneplaine gwyneplaine mentioned this pull request Feb 14, 2023
juzser pushed a commit to juzser/polaris that referenced this pull request Jul 27, 2023
…ist bug (Shopify#7898)

### WHY are these changes introduced?

Fixes Shopify#7865

(see issue)

### WHAT is this pull request doing?

before, stylelint polaris would report `z-index: var(--p-z-9)` even
though it is valid because we were looking for the token name instead of
`var(tokenName`). This wraps the tokens with var
juzser pushed a commit to juzser/polaris that referenced this pull request Jul 27, 2023
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @shopify/polaris@10.16.0

### Minor Changes

- [Shopify#7893](Shopify#7893)
[`9e617c4d9`](Shopify@9e617c4)
Thanks [@yurm04](https://github.com/yurm04)! - Updating TextField and
Select border colors to be compliant with accessibility color contrast
guidance


- [Shopify#7910](Shopify#7910)
[`5a4faf821`](Shopify@5a4faf8)
Thanks [@henryyi](https://github.com/henryyi)! - Added support for hover
delay before displaying tooltip

### Patch Changes

- [Shopify#7890](Shopify#7890)
[`53d836dc2`](Shopify@53d836d)
Thanks [@mrcthms](https://github.com/mrcthms)! - Fixed display bug with
`BulkActions` when content in the table changes at the same time the
bulk actions bar is visible


- [Shopify#7846](Shopify#7846)
[`65131df18`](Shopify@65131df)
Thanks [@qt314](https://github.com/qt314)! - - Changed border radius of
`focus-ring` to use shape tokens instead of adding an extra `1px`
- Updated `TextField` placeholder text to not change to a custom color
on error
    -   Delete an unused class in the `DataTable` and `IndexTable`
    -   Replace some `px` values with tokens
    -   Add some stylelint ignore context comments


- [Shopify#7891](Shopify#7891)
[`ff82bdb18`](Shopify@ff82bdb)
Thanks [@mrcthms](https://github.com/mrcthms)! - Updated the colors of
the borders of the buttons in the `BulkActions` component

## @shopify/plugin-polaris@0.0.21

### Patch Changes

-   Updated dependencies \[]:
    -   @shopify/polaris-migrator@0.10.1

## @shopify/polaris-migrator@0.10.1

### Patch Changes

- Updated dependencies
\[[`4b96147b3`](Shopify@4b96147),
[`c8a294f51`](Shopify@c8a294f),
[`6cd75fd9a`](Shopify@6cd75fd),
[`bdf04a289`](Shopify@bdf04a2),
[`9206b7b13`](Shopify@9206b7b)]:
    -   @shopify/stylelint-polaris@5.0.1

## @shopify/stylelint-polaris@5.0.1

### Patch Changes

- [Shopify#7866](Shopify#7866)
[`4b96147b3`](Shopify@4b96147)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Updated
`stylelint-polaris` to allow disabling specific coverage rules instead
of entire categories


- [Shopify#7906](Shopify#7906)
[`c8a294f51`](Shopify@c8a294f)
Thanks [@qt314](https://github.com/qt314)! - Fixed config atRule and
function regex to match whole word


- [Shopify#7868](Shopify#7868)
[`6cd75fd9a`](Shopify@6cd75fd)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Update
`package.json` to define a single entry point


- [Shopify#7696](Shopify#7696)
[`bdf04a289`](Shopify@bdf04a2)
Thanks [@chloerice](https://github.com/chloerice)! - Implemented custom
message configuration support for polaris/coverage plugin


- [Shopify#7898](Shopify#7898)
[`9206b7b13`](Shopify@9206b7b)
Thanks [@qt314](https://github.com/qt314)! - Bug fix to wrap z-index
'declaration-property-value-allowed-list' token value with "var"

## polaris.shopify.com@0.27.2

### Patch Changes

- Updated dependencies
\[[`53d836dc2`](Shopify@53d836d),
[`9e617c4d9`](Shopify@9e617c4),
[`5a4faf821`](Shopify@5a4faf8),
[`65131df18`](Shopify@65131df),
[`ff82bdb18`](Shopify@ff82bdb)]:
    -   @shopify/polaris@10.16.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[stylelint-polaris][bug hunt] Z-index correct token use is being falsely reported
2 participants