-
- Downloads
[FIX] web, website, portal: fix the text color contrast over background
1. Introduce primary variable to simplified overridden value of
`$min-contrast-ratio` and document its need.
2. Reduce `$min-contrast-ratio` to 2.9 to solve the inconsistency with
the previous version 15.0 of text color over some background color.
Of course it won't restore everything to the way it was: we still
want the version 16.0 to be an evolution over version 15.0 using what
bootstrap recommended to compare contrasts. But as going from 3.0 to
2.9 should not impact existing websites too much and solve use cases
we feel need solving, we feel it is an ok change.
3. Restore override of the `color-contrast` method that will now
handle the transparent colors. Before this commit, a color-contrast
function was just considering RGB value only, after this commit it
will consider RGBA value, relying (by default) on the fact the body
background is the background behind the colors we are comparing.
task-3241031
closes odoo/odoo#118304
Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
Showing
- addons/portal/static/src/scss/bootstrap_overridden.scss 3 additions, 1 deletionaddons/portal/static/src/scss/bootstrap_overridden.scss
- addons/web/static/src/scss/bootstrap_overridden_frontend.scss 1 addition, 1 deletion...ns/web/static/src/scss/bootstrap_overridden_frontend.scss
- addons/web/static/src/scss/bs_mixins_overrides.scss 24 additions, 1 deletionaddons/web/static/src/scss/bs_mixins_overrides.scss
- addons/web/static/src/scss/primary_variables.scss 3 additions, 0 deletionsaddons/web/static/src/scss/primary_variables.scss
- addons/website/static/src/scss/bootstrap_overridden.scss 3 additions, 1 deletionaddons/website/static/src/scss/bootstrap_overridden.scss
Please register or sign in to comment