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

Remove deprecated v8 custom properties, functions, mixins, and mixin maps from stylelint-polaris #7622

Closed
Tracked by #7503
alex-page opened this issue Nov 2, 2022 · 3 comments · Fixed by #8455
Closed
Tracked by #7503
Assignees

Comments

@alex-page
Copy link
Member

alex-page commented Nov 2, 2022

Remove the following deprecated v8 custom properties, functions, mixins, and maps from stylelint-polaris (can happen on main branch before v11). If any of these exist in the _legacy-polaris-v8.scss file they should be removed if possible.

Remove Now

Custom Properties

Name Not in web?
--p-badge-font-weight
--p-badge-mix-blend-mode
--p-button-drop-shadow
--p-button-font-weight
--p-button-inner-shadow
--p-button-pressed-inner-shadow
--p-card-shadow
--p-duration-1-0-0
--p-duration-1-5-0
--p-icon-size
--p-modal-shadow
--p-non-null-content
--p-popover-shadow
--p-override-none
--p-override-one
--p-override-transparent
--p-override-visible
--p-override-zero
--p-range-slider-thumb-scale
--p-text-field-focus-ring-border-radius
--p-top-bar-shadow

Functions & Mixins

Name Not in web?
border()
border-radius()
border-width()
color-icon()
duration()
easing()
font-family()
icon-size()
px()
skeleton-page-header-layout()
skeleton-page-secondary-actions-layout()
spacing()

Mixin Maps

Name Not in web?
$duration-data
$polaris-duration-map
$easing-data
$typography-condensed
$font-family-data
$spacing-data
$actions-vertical-spacing
$border-radius-data
$border-width-data
$border-radius-data
$borders-data

Remove In the Future

The following need to be removed from web before we can remove them from stylelint:

Custom Properties

Name Not in web?
--p-border-radius-wide ❌ (1 instance)

Functions & Mixins

Name Not in web?
available-names() ❌ (13 instances)
color() ❌ (358 instances)
color-multiply() ✅ but ❌ (used in color())
em() ❌ (8 instances)
filter() ❌ (1 instance)
hidden-when-printing() ❌ (50 instances)
high-contrast-border() ❌ (1 instance)
high-contrast-outline() ❌ (3 instances)
map-extend() ✅ but ❌ (used in color())
ms-high-contrast-color() ❌ (10 instances)
print-hidden() ❌ (1 instance)
rem() ❌ (2838 instances)
shadow() ❌ (43 instances)
skeleton-shimmer() ❌ (34 instances)
state() ❌ (28 instances)
unstyled-link() ❌ (18 instances)
unstyled-list() ❌ (40 instances)
when-not-printing() ❌ (1 instance)
z-index() ❌ (28 instances)

Mixin Maps

Name Not in web?
$polaris-colors ❌ (used in color())
$color-filter-palette-data ❌ (used in filter())
$color-palette-data ❌ (used in color())
$base-font-size ❌ (used in rem())
$line-height-data ❌ (used in line-height())
$font-size-data ❌ (used in font-size())
$default-browser-font-size ❌ (used in em())
$layout-width-data ❌ (used in layout-width())
$navigation-width ❌ (1 instance & used in layout-width())
$small-thumbnail-size ❌ (used in thumbnail-size())
$large-thumbnail-size ❌ (used in thumbnail-size())
$medium-thumbnail-size ❌ (used in thumbnail-size())
$thumbnail-sizes ❌ (used in thumbnail-size())
$polaris-spacing ❌ (1 instance)
$shadows-data ❌ (used in shadow())
$fixed-element-stacking-order ❌ (22 instances)
$global-elements ❌ (used in `z-index()
$skeleton-shimmer-duration ❌ used in skeleton-shimmer()
@sam-b-rose sam-b-rose changed the title Remove legacy tokens and mixins that are no longer user Remove legacy tokens and mixins that are no longer used Nov 28, 2022
@sam-b-rose
Copy link
Member

@alex-page Is this still something we want to do within this project scope?

@alex-page
Copy link
Member Author

This needs to happen in v11 imo

@alex-page alex-page changed the title Remove legacy tokens and mixins that are no longer used Remove legacy tokens, mixins and zero value tokens Jan 31, 2023
@lgriffee lgriffee changed the title Remove legacy tokens, mixins and zero value tokens Remove legacy tokens from stylelint-polaris Feb 16, 2023
@lgriffee lgriffee removed their assignment Feb 17, 2023
@lgriffee lgriffee changed the title Remove legacy tokens from stylelint-polaris Remove legacy v9 custom properties from stylelint-polaris Feb 17, 2023
@lgriffee lgriffee changed the title Remove legacy v9 custom properties from stylelint-polaris Remove deprecated v9 custom properties from stylelint-polaris Feb 17, 2023
@lgriffee lgriffee self-assigned this Feb 21, 2023
@lgriffee lgriffee changed the title Remove deprecated v9 custom properties from stylelint-polaris Remove deprecated v9 custom properties and mixins from stylelint-polaris Feb 21, 2023
@lgriffee
Copy link
Member

lgriffee commented Feb 21, 2023

Creating a audit here of which deprecated v8 custom properties, functions, mixins, and maps we can remove from stylelint-polaris. If something is being used in web then we cannot remove it.

Custom Properties

Name Not in web?
--p-badge-font-weight
--p-badge-mix-blend-mode
--p-border-radius-wide ❌ (1 instance)
--p-button-drop-shadow
--p-button-font-weight
--p-button-inner-shadow
--p-button-pressed-inner-shadow
--p-card-shadow
--p-duration-1-0-0
--p-duration-1-5-0
--p-icon-size
--p-modal-shadow
--p-non-null-content
--p-popover-shadow
--p-override-none
--p-override-one
--p-override-transparent
--p-override-visible
--p-override-zero
--p-range-slider-thumb-scale
--p-text-field-focus-ring-border-radius
--p-top-bar-shadow

Functions & Mixins

Name Not in web?
available-names() ❌ (13 instances)
border()
border-radius()
border-width()
color() ❌ (358 instances)
color-icon()
color-multiply() ✅ but ❌ (used in color())
duration()
em() ❌ (8 instances)
easing()
filter() ❌ (1 instance)
font-family()
hidden-when-printing() ❌ (50 instances)
high-contrast-border() ❌ (1 instance)
high-contrast-outline() ❌ (3 instances)
icon-size()
map-extend() ✅ but ❌ (used in color())
ms-high-contrast-color() ❌ (10 instances)
print-hidden() ❌ (1 instance)
px()
rem() ❌ (2838 instances)
shadow() ❌ (43 instances)
skeleton-page-header-layout()
skeleton-page-secondary-actions-layout()
skeleton-shimmer() ❌ (34 instances)
spacing()
state() ❌ (28 instances)
unstyled-link() ❌ (18 instances)
unstyled-list() ❌ (40 instances)
when-not-printing() ❌ (1 instance)
z-index() ❌ (28 instances)

Mixin Maps

Name Not in web?
$polaris-colors ❌ (used in color())
$color-filter-palette-data ❌ (used in filter())
$color-palette-data ❌ (used in color())
$duration-data
$polaris-duration-map
$skeleton-shimmer-duration ❌ used in skeleton-shimmer()
$easing-data
$typography-condensed
$base-font-size ❌ (used in rem())
$line-height-data ❌ (used in line-height())
$font-family-data
$font-size-data ❌ (used in font-size())
$default-browser-font-size ❌ (used in em())
$layout-width-data ❌ (used in layout-width())
$navigation-width ❌ (1 instance & used in layout-width())
$small-thumbnail-size ❌ (used in thumbnail-size())
$large-thumbnail-size ❌ (used in thumbnail-size())
$medium-thumbnail-size ❌ (used in thumbnail-size())
$thumbnail-sizes ❌ (used in thumbnail-size())
$polaris-spacing ❌ (1 instance)
$spacing-data
$actions-vertical-spacing
$border-radius-data
$border-width-data
$border-radius-data
$borders-data
$shadows-data ❌ (used in shadow())
$fixed-element-stacking-order ❌ (22 instances)
$global-elements ❌ (used in `z-index()

In addition to removing the above mixins/functions and maps we should also remove these values from the _legacy-polaris-v8 file if possible.

@lgriffee lgriffee changed the title Remove deprecated v9 custom properties and mixins from stylelint-polaris Remove deprecated v9 custom properties, functions, mixins, and mixin maps from stylelint-polaris Feb 22, 2023
@lgriffee lgriffee changed the title Remove deprecated v9 custom properties, functions, mixins, and mixin maps from stylelint-polaris Remove deprecated v8 custom properties, functions, mixins, and mixin maps from stylelint-polaris Apr 12, 2023
lgriffee added a commit that referenced this issue Apr 13, 2023
…maps from `stylelint-polaris` (#8455)

### WHY are these changes introduced?

Fixes #7622 

<hr>

🚨 **Before this PR ships we need to remove the same values from the
`_legacy-polaris-v8` file if they exist.** 🚨

- [x] Shopify/web#84457

<hr>

### WHAT is this pull request doing?
Removes deprecated v8 custom properties, functions, mixins, and maps
from `stylelint-polaris` that do not exist in web (see the linked issue
above for a list of these values).

---------

Co-authored-by: Aaron Casanova <[email protected]>
sam-b-rose added a commit that referenced this issue May 26, 2023
## @shopify/polaris v11.0.0

### Dependencies

- [x] #8200

### NodeJS

- [x] #8201

### TypeScript

- [x] #8203

### Components

- [x] #7349
- [x] #7397
- [x] #7962
- [x] #8187
- [x] #8184
- [x] #8206
- [x] #7990
- [x] #8468
- [x] #8577
- [x] #8631
- [x] #8962

## @shopify/polaris-tokens v7.0.0

### Tokens
- [x] #6920
- [x] #8245
- [x] #4826
- [x] #8405

## @shopify/stylelint-polaris v7.0.0
- [x] #7622
- [x] #8419

# Post @shopify/polaris v11 shipping
- [ ] #8420

## Low priority or not ready breaking changes
- [x] Remove deprecated layout components
- [x] Release Layout primitive components

---------

Co-authored-by: Tim Layton <[email protected]>
Co-authored-by: Ryan Musgrave <[email protected]>
Co-authored-by: Ryan Musgrave <[email protected]>
Co-authored-by: aveline <[email protected]>
Co-authored-by: Kyle Durand <[email protected]>
Co-authored-by: Matt Gregg <[email protected]>
Co-authored-by: Alex Page <[email protected]>
Co-authored-by: Lo Kim <[email protected]>
Co-authored-by: Ben Scott <[email protected]>
Co-authored-by: Aaron Casanova <[email protected]>
Co-authored-by: Sam Rose <[email protected]>
Co-authored-by: Sam Rose <[email protected]>
Co-authored-by: Marc Thomas <[email protected]>
Co-authored-by: Alex Page <[email protected]>
Co-authored-by: Chloe Rice <[email protected]>
Co-authored-by: Chloe Rice <[email protected]>
Co-authored-by: Joe Thomas <[email protected]>
Co-authored-by: Yuraima Estevez <[email protected]>
Co-authored-by: shopify-github-actions-access[bot] <109624739+shopify-github-actions-access[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
juzser pushed a commit to juzser/polaris that referenced this issue Jul 27, 2023
…maps from `stylelint-polaris` (Shopify#8455)

### WHY are these changes introduced?

Fixes Shopify#7622 

<hr>

🚨 **Before this PR ships we need to remove the same values from the
`_legacy-polaris-v8` file if they exist.** 🚨

- [x] https://github.com/Shopify/web/pull/84457

<hr>

### WHAT is this pull request doing?
Removes deprecated v8 custom properties, functions, mixins, and maps
from `stylelint-polaris` that do not exist in web (see the linked issue
above for a list of these values).

---------

Co-authored-by: Aaron Casanova <[email protected]>
juzser pushed a commit to juzser/polaris that referenced this issue Jul 27, 2023
## @shopify/polaris v11.0.0

### Dependencies

- [x] Shopify#8200

### NodeJS

- [x] Shopify#8201

### TypeScript

- [x] Shopify#8203

### Components

- [x] Shopify#7349
- [x] Shopify#7397
- [x] Shopify#7962
- [x] Shopify#8187
- [x] Shopify#8184
- [x] Shopify#8206
- [x] Shopify#7990
- [x] Shopify#8468
- [x] Shopify#8577
- [x] Shopify#8631
- [x] Shopify#8962

## @shopify/polaris-tokens v7.0.0

### Tokens
- [x] Shopify#6920
- [x] Shopify#8245
- [x] Shopify#4826
- [x] Shopify#8405

## @shopify/stylelint-polaris v7.0.0
- [x] Shopify#7622
- [x] Shopify#8419

# Post @shopify/polaris v11 shipping
- [ ] Shopify#8420

## Low priority or not ready breaking changes
- [x] Remove deprecated layout components
- [x] Release Layout primitive components

---------

Co-authored-by: Tim Layton <[email protected]>
Co-authored-by: Ryan Musgrave <[email protected]>
Co-authored-by: Ryan Musgrave <[email protected]>
Co-authored-by: aveline <[email protected]>
Co-authored-by: Kyle Durand <[email protected]>
Co-authored-by: Matt Gregg <[email protected]>
Co-authored-by: Alex Page <[email protected]>
Co-authored-by: Lo Kim <[email protected]>
Co-authored-by: Ben Scott <[email protected]>
Co-authored-by: Aaron Casanova <[email protected]>
Co-authored-by: Sam Rose <[email protected]>
Co-authored-by: Sam Rose <[email protected]>
Co-authored-by: Marc Thomas <[email protected]>
Co-authored-by: Alex Page <[email protected]>
Co-authored-by: Chloe Rice <[email protected]>
Co-authored-by: Chloe Rice <[email protected]>
Co-authored-by: Joe Thomas <[email protected]>
Co-authored-by: Yuraima Estevez <[email protected]>
Co-authored-by: shopify-github-actions-access[bot] <109624739+shopify-github-actions-access[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AnnaCheba pushed a commit to AnnaCheba/polaris that referenced this issue Apr 22, 2024
…maps from `stylelint-polaris` (Shopify#8455)

### WHY are these changes introduced?

Fixes Shopify#7622 

<hr>

🚨 **Before this PR ships we need to remove the same values from the
`_legacy-polaris-v8` file if they exist.** 🚨

- [x] Shopify/web#84457

<hr>

### WHAT is this pull request doing?
Removes deprecated v8 custom properties, functions, mixins, and maps
from `stylelint-polaris` that do not exist in web (see the linked issue
above for a list of these values).

---------

Co-authored-by: Aaron Casanova <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants