Skip to content

Commit c6205bb

Browse files
authored
chore(stylelint): move property declarations + disable violation (#3273)
1 parent a354b16 commit c6205bb

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.changeset/quick-paws-lick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@spectrum-css/colorwheel": patch
3+
---
4+
5+
Moves custom properties to resolve declaration order lint violation. Disable unused property violation and add comment as disable statement description.

components/colorwheel/index.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
}
3636

3737
.spectrum-ColorWheel {
38+
/* stylelint-disable spectrum-tools/no-unused-custom-properties, custom-property-pattern -- --track-width and --border-width to be used with JS in calculating the clip-path paths and colorarea-container-size */
39+
--track-width: var(--mod-colorwheel-track-width, var(--spectrum-colorwheel-track-width));
40+
--border-width: var(--mod-colorwheel-border-width, var(--spectrum-colorwheel-border-width));
41+
3842
position: relative;
3943
display: block;
4044
min-inline-size: var(--mod-colorwheel-min-width, var(--spectrum-colorwheel-min-width));
@@ -47,10 +51,6 @@
4751
z-index: 2;
4852
}
4953

50-
/* --track-width and --border-width to be used with JS in calculating the clip-path paths and colorarea-container-size */
51-
--track-width: var(--mod-colorwheel-track-width, var(--spectrum-colorwheel-track-width));
52-
--border-width: var(--mod-colorwheel-border-width, var(--spectrum-colorwheel-border-width));
53-
5454
&.is-disabled {
5555
pointer-events: none;
5656
}

0 commit comments

Comments
 (0)