If lightness value is set to 0, the theme URL causes the following js error:
Uncaught Error: unknown hex color: undefined
at hex2rgb$1 (chroma.js:804:1)
at new Color (chroma.js:183:1)
at chroma$k (chroma.js:204:1)
at Theme._findContrastColors (theme.js:218:1)
at Theme.set lightness [as lightness] (theme.js:67:1)
at paramSetup (params.js:99:5)
at Object.parcelRequire.m3VC.@spectrum-css/vars/dist/spectrum-global.css (theme.js:219:1)
at newRequire (index.js:1:404)
at index.js:1:637
at index.js:1:1413
chroma.js:804 Uncaught (in promise) Error: unknown hex color: undefined
at hex2rgb$1 (chroma.js:804:1)
at new Color (chroma.js:183:1)
at chroma$k (chroma.js:204:1)
at Theme._findContrastColors (theme.js:218:1)
at Theme.set output [as output] (theme.js:170:1)
at createOutputParameters.js:37:5
colorWheel.js:246 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'getContext')
at createColorWheel (colorWheel.js:246:19)
at colorWheel.js:352:5
Description
If lightness value is set to 0, the theme URL causes the following js error:
Steps to reproduce
Environment
All browsers on Macos 12.3.1