[FIX] portal: set right color on text ellipsis when a tag is used in td

Before this commit, when `a` tag is in a td, the color of text ellipsis
(3 dots) is different than the text because the text-ellipsis is set on
the parent element, that is `td` element and the color is set on the `a`.

This commit sets the right color on td element when that element has `a`
element.

Limitation (only for td inside element with `o_portal_my_doc_table` class):
if the `td` element contains `a` tag and another element
then the color has to be set to that other html element otherwise,
the color will be the one of the a tag.

task-3251721

closes odoo/odoo#134993

X-original-commit: b28459ddee3bf76630e2968baecd1dd4bc7cba93
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
Pratik Awasthi
2023-09-25 09:38:31 +00:00
committed by Xavier Bol (xbo)
parent 8dfe8a8c6c
commit fc2cc3174b
@@ -300,6 +300,10 @@ img, .media_iframe_video, .o_image {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
&:has(a) {
color: $primary;
}
}
}