Skip to content

Commit 2bc0cd7

Browse files
committed
Revert "Add deprecated v10 custom properties to stylelint-polaris (Shopify#8549)"
This reverts commit 082138a.
1 parent ab4bbed commit 2bc0cd7

File tree

2 files changed

+2
-193
lines changed

2 files changed

+2
-193
lines changed

.changeset/grumpy-cars-hide.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

stylelint-polaris/index.js

Lines changed: 2 additions & 188 deletions
Original file line numberDiff line numberDiff line change
@@ -73,151 +73,6 @@ const stylelintPolarisCoverageOptions = {
7373
/\$polaris-colors/,
7474
/\$color-filter-palette-data/,
7575
/\$color-palette-data/,
76-
// Legacy custom properties
77-
/--p-override-transparent/,
78-
/--p-badge-mix-blend-mode/,
79-
/--p-text-warning/,
80-
/--p-text-success/,
81-
/--p-text-subdued-on-dark/,
82-
/--p-text-subdued/,
83-
/--p-text-primary-pressed/,
84-
/--p-text-primary-hovered/,
85-
/--p-text-primary/,
86-
/--p-text-on-primary/,
87-
/--p-text-on-interactive/,
88-
/--p-text-on-dark/,
89-
/--p-text-on-critical/,
90-
/--p-text-highlight/,
91-
/--p-text-disabled/,
92-
/--p-text-critical/,
93-
/--p-text/,
94-
/--p-surface-warning-subdued-pressed/,
95-
/--p-surface-warning-subdued-hovered/,
96-
/--p-surface-warning-subdued/,
97-
/--p-surface-warning/,
98-
/--p-surface-success-subdued-pressed/,
99-
/--p-surface-success-subdued-hovered/,
100-
/--p-surface-success-subdued /,
101-
/--p-surface-success/,
102-
/--p-surface-subdued/,
103-
/--p-surface-selected-pressed/,
104-
/--p-surface-selected-hovered/,
105-
/--p-surface-selected/,
106-
/--p-surface-search-field-dark/,
107-
/--p-surface-search-field/,
108-
/--p-surface-primary-selected-pressed/,
109-
/--p-surface-primary-selected-hovered/,
110-
/--p-surface-primary-selected/,
111-
/--p-surface-pressed-dark/,
112-
/--p-surface-pressed/,
113-
/--p-surface-neutral-subdued-dark/,
114-
/--p-surface-neutral-subdued/,
115-
/--p-surface-neutral-pressed/,
116-
/--p-surface-neutral-hovered/,
117-
/--p-surface-neutral-disabled/,
118-
/--p-surface-neutral/,
119-
/--p-surface-hovered-dark/,
120-
/--p-surface-hovered/,
121-
/--p-surface-highlight-subdued-pressed/,
122-
/--p-surface-highlight-subdued-hovered/,
123-
/--p-surface-highlight-subdued/,
124-
/--p-surface-highlight/,
125-
/--p-surface-disabled/,
126-
/--p-surface-depressed/,
127-
/--p-surface-dark/,
128-
/--p-surface-critical-subdued-pressed/,
129-
/--p-surface-critical-subdued-hovered/,
130-
/--p-surface-critical-subdued-depressed/,
131-
/--p-surface-critical-subdued/,
132-
/--p-surface-critical/,
133-
/--p-surface-attention/,
134-
/--p-surface/,
135-
/--p-shadow-color-picker-dragger/,
136-
/--p-shadow-color-picker/,
137-
/--p-overlay/,
138-
/--p-interactive-pressed-on-dark/,
139-
/--p-interactive-pressed/,
140-
/--p-interactive-on-dark/,
141-
/--p-interactive-hovered/,
142-
/--p-interactive-disabled/,
143-
/--p-interactive-critical-pressed/,
144-
/--p-interactive-critical-hovered/,
145-
/--p-interactive-critical-disabled/,
146-
/--p-interactive-critical/,
147-
/--p-interactive/,
148-
/--p-icon-warning/,
149-
/--p-icon-success/,
150-
/--p-icon-subdued/,
151-
/--p-icon-pressed/,
152-
/--p-icon-on-primary/,
153-
/--p-icon-on-interactive/,
154-
/--p-icon-on-dark/,
155-
/--p-icon-on-critical/,
156-
/--p-icon-hovered/,
157-
/--p-icon-highlight/,
158-
/--p-icon-disabled/,
159-
/--p-icon-critical/,
160-
/--p-icon-attention/,
161-
/--p-icon/,
162-
/--p-hint-from-direct-light/,
163-
/--p-focused/,
164-
/--p-divider-dark/,
165-
/--p-divider/,
166-
/--p-decorative-two-text/,
167-
/--p-decorative-two-surface/,
168-
/--p-decorative-two-icon/,
169-
/--p-decorative-three-text/,
170-
/--p-decorative-three-surface/,
171-
/--p-decorative-three-icon/,
172-
/--p-decorative-one-text/,
173-
/--p-decorative-one-surface/,
174-
/--p-decorative-one-icon/,
175-
/--p-decorative-four-text/,
176-
/--p-decorative-four-surface/,
177-
/--p-decorative-four-icon/,
178-
/--p-decorative-five-text/,
179-
/--p-decorative-five-surface/,
180-
/--p-decorative-five-icon/,
181-
/--p-border-warning-subdued/,
182-
/--p-border-warning/,
183-
/--p-border-success-subdued/,
184-
/--p-border-success/,
185-
/--p-border-subdued/,
186-
/--p-border-shadow-subdued/,
187-
/--p-border-shadow/,
188-
/--p-border-on-dark/,
189-
/--p-border-neutral-subdued/,
190-
/--p-border-hovered/,
191-
/--p-border-highlight-subdued/,
192-
/--p-border-highlight/,
193-
/--p-border-disabled/,
194-
/--p-border-depressed/,
195-
/--p-border-critical-subdued/,
196-
/--p-border-critical-disabled/,
197-
/--p-border-critical/,
198-
/--p-border/,
199-
/--p-background-selected/,
200-
/--p-background-pressed/,
201-
/--p-background-hovered/,
202-
/--p-background/,
203-
/--p-backdrop/,
204-
/--p-action-secondary-pressed-dark/,
205-
/--p-action-secondary-pressed/,
206-
/--p-action-secondary-hovered-dark/,
207-
/--p-action-secondary-hovered/,
208-
/--p-action-secondary-disabled/,
209-
/--p-action-secondary-depressed/,
210-
/--p-action-secondary/,
211-
/--p-action-primary-pressed/,
212-
/--p-action-primary-hovered/,
213-
/--p-action-primary-disabled/,
214-
/--p-action-primary-depressed/,
215-
/--p-action-primary/,
216-
/--p-action-critical-pressed/,
217-
/--p-action-critical-hovered/,
218-
/--p-action-critical-disabled/,
219-
/--p-action-critical-depressed/,
220-
/--p-action-critical/,
22176
],
22277
},
22378
{
@@ -356,8 +211,6 @@ const stylelintPolarisCoverageOptions = {
356211
/--p-range-slider-thumb-size-base/,
357212
/--p-range-slider-thumb-size-active/,
358213
/--p-choice-size/,
359-
/--p-icon-size-small/,
360-
/--p-icon-size-medium/,
361214
],
362215
},
363216
{
@@ -383,7 +236,6 @@ const stylelintPolarisCoverageOptions = {
383236
/--p-button-group-item-spacing/,
384237
/--p-choice-margin/,
385238
/--p-text-field-spinner-offset/,
386-
/--p-frame-offset/,
387239
],
388240
},
389241
{
@@ -412,10 +264,9 @@ const stylelintPolarisCoverageOptions = {
412264
},
413265
'polaris/global-disallowed-list': [
414266
// Legacy custom properties
415-
/--p-border-radius-base/,
416-
/--p-border-radius-large/,
267+
// /--p-border-radius-base/,
417268
/--p-border-radius-wide/,
418-
/--p-border-radius-half/,
269+
// /--p-border-radius-full/,
419270
/--p-control-border-width/,
420271
/--p-thin-border-subdued/,
421272
/--p-banner-border-default/,
@@ -424,11 +275,6 @@ const stylelintPolarisCoverageOptions = {
424275
/--p-banner-border-warning/,
425276
/--p-banner-border-critical/,
426277
/--p-text-field-focus-ring-offset/,
427-
/--p-border-base/,
428-
/--p-border-dark/,
429-
/--p-border-transparent/,
430-
/--p-border-divider/,
431-
/--p-border-divider-on-dark/,
432278
],
433279
},
434280
{
@@ -447,26 +293,6 @@ const stylelintPolarisCoverageOptions = {
447293
'polaris/global-disallowed-list': [
448294
// Legacy mixin map-get data
449295
/\$shadows-data/,
450-
// Legacy custom properties
451-
/--p-button-drop-shadow/,
452-
/--p-button-inner-shadow/,
453-
/--p-button-pressed-inner-shadow/,
454-
/--p-card-shadow/,
455-
/--p-popover-shadow/,
456-
/--p-modal-shadow/,
457-
/--p-top-bar-shadow/,
458-
/--p-shadow-transparent/,
459-
/--p-shadow-faint/,
460-
/--p-shadow-base/,
461-
/--p-shadow-deep/,
462-
/--p-shadow-button/,
463-
/--p-shadow-top-bar/,
464-
/--p-shadow-card/,
465-
/--p-shadow-popover/,
466-
/--p-shadow-layer/,
467-
/--p-shadow-modal/,
468-
/--p-shadows-inset-button/,
469-
/--p-shadows-inset-button-pressed/,
470296
],
471297
},
472298
{
@@ -489,18 +315,6 @@ const stylelintPolarisCoverageOptions = {
489315
/\$global-elements/,
490316
// Legacy custom properties
491317
/--p-override-loading-z-index/,
492-
/--p-z-1/,
493-
/--p-z-2/,
494-
/--p-z-3/,
495-
/--p-z-4/,
496-
/--p-z-5/,
497-
/--p-z-6/,
498-
/--p-z-7/,
499-
/--p-z-8/,
500-
/--p-z-9/,
501-
/--p-z-10/,
502-
/--p-z-11/,
503-
/--p-z-12/,
504318
],
505319
},
506320
{

0 commit comments

Comments
 (0)