From b4b390d4107c9cb924e6e9ef7a51ef2cd7d39011 Mon Sep 17 00:00:00 2001 From: "Antoine (anso)" Date: Wed, 14 Dec 2022 13:24:52 +0000 Subject: [PATCH] [FIX] web: duplicated color management for tags Tag color is already handled in tags_list.scss Also, `$min-contrast-ratio: 2.2` was creating contrast issues and was therefore dropped part of task-3085081 closes odoo/odoo#109740 X-original-commit: 5517e41663ece74e5dc13d9ab4edf9938cfe5c4b Related: odoo/enterprise#35701 Signed-off-by: Pierre Paridans (app) --- addons/web/static/src/legacy/scss/fields.scss | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/addons/web/static/src/legacy/scss/fields.scss b/addons/web/static/src/legacy/scss/fields.scss index 1857f418c3e..5050947b2e6 100644 --- a/addons/web/static/src/legacy/scss/fields.scss +++ b/addons/web/static/src/legacy/scss/fields.scss @@ -261,25 +261,6 @@ } } - @for $size from 1 through length($o-colors) { - .o_tag_color_#{$size - 1} { - @if $size == 1 { - & { - background-color: $o-view-background-color; - color: nth($o-colors, $size); - box-shadow: inset 0 0 0 1px; - } - &::after { - background-color: nth($o-colors, $size); - } - } @else { - &, &::after { - background-color: nth($o-colors, $size); - color: color-contrast(nth($o-colors, $size), $min-contrast-ratio: 2.2); - } - } - } - } .o_tag_error { box-shadow: inset 0 0 0 2px #FF0000;