diff --git a/addons/web/static/src/core/tags_list/tags_list.scss b/addons/web/static/src/core/tags_list/tags_list.scss index a76a4d0f321..dd447728339 100644 --- a/addons/web/static/src/core/tags_list/tags_list.scss +++ b/addons/web/static/src/core/tags_list/tags_list.scss @@ -2,14 +2,6 @@ font-size: var(--Tag-font-size, #{$font-size-sm}); max-width: var(--Tag-max-width, 100%); - .o_badge_text, a { - line-height: 1.1; - } - - a { - color: inherit; - } - @for $size from 1 through length($o-colors) { &.o_tag_color_#{$size - 1} { $-bg: adjust-color(nth($o-colors, $size), $lightness: 25%, $saturation: 15%); diff --git a/addons/web/static/src/core/tags_list/tags_list.xml b/addons/web/static/src/core/tags_list/tags_list.xml index 3283cd2ced1..eeed772d8a4 100644 --- a/addons/web/static/src/core/tags_list/tags_list.xml +++ b/addons/web/static/src/core/tags_list/tags_list.xml @@ -7,7 +7,7 @@ class="o_tag position-relative d-inline-flex align-items-center user-select-none" t-att-class="{ 'o_avatar opacity-trigger-hover' : tag.img, - 'o_badge badge rounded-pill': !tag.img, + 'o_badge badge rounded-pill lh-1': !tag.img, }" t-attf-class="{{ !tag.img ? 'o_tag_color_' + (tag.colorIndex ? tag.colorIndex : '0') : '' }}" tabindex="-1" @@ -16,10 +16,39 @@ t-on-click="(ev) => tag.onClick and tag.onClick(ev)" t-on-keydown="tag.onKeydown"> - + + + + + -