From fc2cc3174b24ec510c0510fb770153377f534200 Mon Sep 17 00:00:00 2001 From: Pratik Awasthi Date: Fri, 9 Jun 2023 15:05:13 +0530 Subject: [PATCH] [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) --- addons/portal/static/src/scss/portal.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/portal/static/src/scss/portal.scss b/addons/portal/static/src/scss/portal.scss index 8abe675a0a9..b2d9084fbc7 100644 --- a/addons/portal/static/src/scss/portal.scss +++ b/addons/portal/static/src/scss/portal.scss @@ -300,6 +300,10 @@ img, .media_iframe_video, .o_image { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; + + &:has(a) { + color: $primary; + } } }