finnhvman / matter

Material Design Components in Pure CSS. Materializing HTML at just one class per component 🍰
MIT License
1.13k stars 85 forks source link

Possible typo in selector #43

Open ComedyTomedy opened 1 month ago

ComedyTomedy commented 1 month ago

The rule at .matter-switch > input:disabled + span only applies an alpha channel when the var --matter-onsurface-rgb isn't defined, which looks like a mistake, and I think the alpha part is intended to always apply.

I gather this project is on pause, just leaving this quick note in case it applies to Matter 2, or any other derivatives.

ComedyTomedy commented 1 month ago

another color typo

https://github.com/finnhvman/matter/blob/master/src/utilities/colors/colors.css

Uses error color instead of onerror in the 2nd declaration.


.matter-error {
    --matter-theme-rgb: var(--matter-error-rgb, 238, 0, 0);
    --matter-ontheme-rgb: var(--matter-error-rgb, 255, 255, 255);
}