color-js / elements

WIP
12 stars 1 forks source link

[color-swatch] Stop supporting `swatch="none"` #60

Closed DmitrySharabin closed 3 months ago

DmitrySharabin commented 3 months ago

We should remove this:

https://github.com/color-js/elements/blob/e8ec6d801de8b31dc8bf3a9cda34a13ef1817d6d/src/color-swatch/color-swatch.css#L112-L114

Instead, one can always do

::part(swatch) { display: none; }

if needed.

LeaVerou commented 3 months ago

Agreed.