Skip to content

Commit 24712c8

Browse files
committed
Add deprecated v10 custom properties to stylelint-polaris (#8549)
1 parent d0a2979 commit 24712c8

File tree

2 files changed

+170
-0
lines changed

2 files changed

+170
-0
lines changed

.changeset/grumpy-cars-hide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/stylelint-polaris': major
3+
---
4+
5+
Add deprecated v10 custom properties to stylelint-polaris global-disallowed-list

stylelint-polaris/index.js

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,151 @@ const stylelintPolarisCoverageOptions = {
303303
/\$polaris-colors/,
304304
/\$color-filter-palette-data/,
305305
/\$color-palette-data/,
306+
// Legacy custom properties
307+
/--p-override-transparent/,
308+
/--p-badge-mix-blend-mode/,
309+
/--p-text-warning/,
310+
/--p-text-success/,
311+
/--p-text-subdued-on-dark/,
312+
/--p-text-subdued/,
313+
/--p-text-primary-pressed/,
314+
/--p-text-primary-hovered/,
315+
/--p-text-primary/,
316+
/--p-text-on-primary/,
317+
/--p-text-on-interactive/,
318+
/--p-text-on-dark/,
319+
/--p-text-on-critical/,
320+
/--p-text-highlight/,
321+
/--p-text-disabled/,
322+
/--p-text-critical/,
323+
/--p-text/,
324+
/--p-surface-warning-subdued-pressed/,
325+
/--p-surface-warning-subdued-hovered/,
326+
/--p-surface-warning-subdued/,
327+
/--p-surface-warning/,
328+
/--p-surface-success-subdued-pressed/,
329+
/--p-surface-success-subdued-hovered/,
330+
/--p-surface-success-subdued /,
331+
/--p-surface-success/,
332+
/--p-surface-subdued/,
333+
/--p-surface-selected-pressed/,
334+
/--p-surface-selected-hovered/,
335+
/--p-surface-selected/,
336+
/--p-surface-search-field-dark/,
337+
/--p-surface-search-field/,
338+
/--p-surface-primary-selected-pressed/,
339+
/--p-surface-primary-selected-hovered/,
340+
/--p-surface-primary-selected/,
341+
/--p-surface-pressed-dark/,
342+
/--p-surface-pressed/,
343+
/--p-surface-neutral-subdued-dark/,
344+
/--p-surface-neutral-subdued/,
345+
/--p-surface-neutral-pressed/,
346+
/--p-surface-neutral-hovered/,
347+
/--p-surface-neutral-disabled/,
348+
/--p-surface-neutral/,
349+
/--p-surface-hovered-dark/,
350+
/--p-surface-hovered/,
351+
/--p-surface-highlight-subdued-pressed/,
352+
/--p-surface-highlight-subdued-hovered/,
353+
/--p-surface-highlight-subdued/,
354+
/--p-surface-highlight/,
355+
/--p-surface-disabled/,
356+
/--p-surface-depressed/,
357+
/--p-surface-dark/,
358+
/--p-surface-critical-subdued-pressed/,
359+
/--p-surface-critical-subdued-hovered/,
360+
/--p-surface-critical-subdued-depressed/,
361+
/--p-surface-critical-subdued/,
362+
/--p-surface-critical/,
363+
/--p-surface-attention/,
364+
/--p-surface/,
365+
/--p-shadow-color-picker-dragger/,
366+
/--p-shadow-color-picker/,
367+
/--p-overlay/,
368+
/--p-interactive-pressed-on-dark/,
369+
/--p-interactive-pressed/,
370+
/--p-interactive-on-dark/,
371+
/--p-interactive-hovered/,
372+
/--p-interactive-disabled/,
373+
/--p-interactive-critical-pressed/,
374+
/--p-interactive-critical-hovered/,
375+
/--p-interactive-critical-disabled/,
376+
/--p-interactive-critical/,
377+
/--p-interactive/,
378+
/--p-icon-warning/,
379+
/--p-icon-success/,
380+
/--p-icon-subdued/,
381+
/--p-icon-pressed/,
382+
/--p-icon-on-primary/,
383+
/--p-icon-on-interactive/,
384+
/--p-icon-on-dark/,
385+
/--p-icon-on-critical/,
386+
/--p-icon-hovered/,
387+
/--p-icon-highlight/,
388+
/--p-icon-disabled/,
389+
/--p-icon-critical/,
390+
/--p-icon-attention/,
391+
/--p-icon/,
392+
/--p-hint-from-direct-light/,
393+
/--p-focused/,
394+
/--p-divider-dark/,
395+
/--p-divider/,
396+
/--p-decorative-two-text/,
397+
/--p-decorative-two-surface/,
398+
/--p-decorative-two-icon/,
399+
/--p-decorative-three-text/,
400+
/--p-decorative-three-surface/,
401+
/--p-decorative-three-icon/,
402+
/--p-decorative-one-text/,
403+
/--p-decorative-one-surface/,
404+
/--p-decorative-one-icon/,
405+
/--p-decorative-four-text/,
406+
/--p-decorative-four-surface/,
407+
/--p-decorative-four-icon/,
408+
/--p-decorative-five-text/,
409+
/--p-decorative-five-surface/,
410+
/--p-decorative-five-icon/,
411+
/--p-border-warning-subdued/,
412+
/--p-border-warning/,
413+
/--p-border-success-subdued/,
414+
/--p-border-success/,
415+
/--p-border-subdued/,
416+
/--p-border-shadow-subdued/,
417+
/--p-border-shadow/,
418+
/--p-border-on-dark/,
419+
/--p-border-neutral-subdued/,
420+
/--p-border-hovered/,
421+
/--p-border-highlight-subdued/,
422+
/--p-border-highlight/,
423+
/--p-border-disabled/,
424+
/--p-border-depressed/,
425+
/--p-border-critical-subdued/,
426+
/--p-border-critical-disabled/,
427+
/--p-border-critical/,
428+
/--p-border/,
429+
/--p-background-selected/,
430+
/--p-background-pressed/,
431+
/--p-background-hovered/,
432+
/--p-background/,
433+
/--p-backdrop/,
434+
/--p-action-secondary-pressed-dark/,
435+
/--p-action-secondary-pressed/,
436+
/--p-action-secondary-hovered-dark/,
437+
/--p-action-secondary-hovered/,
438+
/--p-action-secondary-disabled/,
439+
/--p-action-secondary-depressed/,
440+
/--p-action-secondary/,
441+
/--p-action-primary-pressed/,
442+
/--p-action-primary-hovered/,
443+
/--p-action-primary-disabled/,
444+
/--p-action-primary-depressed/,
445+
/--p-action-primary/,
446+
/--p-action-critical-pressed/,
447+
/--p-action-critical-hovered/,
448+
/--p-action-critical-disabled/,
449+
/--p-action-critical-depressed/,
450+
/--p-action-critical/,
306451
],
307452
},
308453
{
@@ -517,6 +662,26 @@ const stylelintPolarisCoverageOptions = {
517662
'polaris/global-disallowed-list': [
518663
// Legacy mixin map-get data
519664
/\$shadows-data/,
665+
// Legacy custom properties
666+
/--p-button-drop-shadow/,
667+
/--p-button-inner-shadow/,
668+
/--p-button-pressed-inner-shadow/,
669+
/--p-card-shadow/,
670+
/--p-popover-shadow/,
671+
/--p-modal-shadow/,
672+
/--p-top-bar-shadow/,
673+
/--p-shadow-transparent/,
674+
/--p-shadow-faint/,
675+
/--p-shadow-base/,
676+
/--p-shadow-deep/,
677+
/--p-shadow-button/,
678+
/--p-shadow-top-bar/,
679+
/--p-shadow-card/,
680+
/--p-shadow-popover/,
681+
/--p-shadow-layer/,
682+
/--p-shadow-modal/,
683+
/--p-shadows-inset-button/,
684+
/--p-shadows-inset-button-pressed/,
520685
],
521686
},
522687
{

0 commit comments

Comments
 (0)