Skip to content

Commit

Permalink
fix(colorwheel): remove global token reference
Browse files Browse the repository at this point in the history
  • Loading branch information
cdransf committed Jan 30, 2025
1 parent 3a85569 commit f2aafaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/colorwheel/dist/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"--spectrum-colorwheel-border-width",
"--spectrum-colorwheel-colorarea-container-size",
"--spectrum-colorwheel-colorarea-margin",
"--spectrum-colorwheel-fill-color-disabled",
"--spectrum-colorwheel-height",
"--spectrum-colorwheel-path",
"--spectrum-colorwheel-track-width",
Expand Down
4 changes: 3 additions & 1 deletion components/colorwheel/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

--spectrum-colorwheel-colorarea-margin: var(--spectrum-color-wheel-color-area-margin);

--spectrum-colorwheel-fill-color-disabled: var(--spectrum-disabled-background-color);

/* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used with JS in calculating the clip-path paths and colorarea-container-size */
--_track-width: var(--mod-colorwheel-track-width, var(--spectrum-colorwheel-track-width));
/* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used with JS in calculating the clip-path paths and colorarea-container-size */
Expand Down Expand Up @@ -145,7 +147,7 @@

&.is-disabled {
pointer-events: none;
background: var(--highcontrast-colorwheel-fill-color-disabled, var(--mod-colorwheel-fill-color-disabled, var(--spectrum-disabled-background-color)));
background: var(--highcontrast-colorwheel-fill-color-disabled, var(--mod-colorwheel-fill-color-disabled, var(--spectrum-colorwheel-fill-color-disabled)));
}
}

Expand Down

0 comments on commit f2aafaa

Please sign in to comment.