We will adopt CSS custom properties in the mobile skin. This has implications on our browser support matrix. Older browsers (very old versions of Opera Mini, IE11) that do not support CSS custom properties will stop receiving certain colors and instead using the default browser color palette.
For example note the lack of a background color on IE11:
TODO
- Add an ADR to Minerva defining why are we using CSS custom properties
- Switch all LESS variables using color (background,color,borders) to CSS custom properties
- Define the light mode color palette using the LESS variables e.g. `--color-base: @color-base;`
- Define a night mode color palette which is enabled when the .skin-darkmode-1 is on the HTML tag
- Define a night mode color palette which applies when the .skin-darkmode-2 class is enabled on the HTML tag and the operating system specifies it prefers a night theme.
Design spec
Additional contest: T354891#9456985
@color-base: #EAECF0 gray200 @color-subtle: #C8CCD1 gray300 @color-link: #6699FF blue300 @color-link-new: #6699FF blue300 @color-link-selected: #94B8FF @color-placeholder: #A2A9B1 gray400 @color-emphasized: #FFFFFF @color-progressive: #6699FF blue300 @color-destructive: #FF4242 red500 @color-progressive--hover: #94B8FF @background-color-base: #202122 gray700 @background-color-secondary: #2E3136 gray675 @background-color-secondary--modern: #202122 gray700 @color-visited: #9781BD
Developer sign off
Check that no LESS variables remain in the Minerva skin for the following queries:
ag "@(color|background-color|border-color)" --ignore resources/
QA
QA is covered in T350170.
- Verify in Pixel that no colors change in the default theme.
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T356074#9518227 |
QA Results - Prod
AC | Status | Details |
---|---|---|
1 | ⬜ | T356074#9567933 |