[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) <app@odoo.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user