From 70d35c31b86a837f9c99da4f582f5efda3ac7283 Mon Sep 17 00:00:00 2001
From: Pratik Awasthi <praw@odoo.com>
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#134361

X-original-commit: b28459ddee3bf76630e2968baecd1dd4bc7cba93
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
Signed-off-by: Pratik Awasthi (praw) <praw@odoo.com>
---
 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 a3d82a8ef57e..6d19d944e56b 100644
--- a/addons/portal/static/src/scss/portal.scss
+++ b/addons/portal/static/src/scss/portal.scss
@@ -342,6 +342,10 @@ img, .media_iframe_video, .o_image {
             white-space: nowrap;
             overflow: hidden;
             text-overflow: ellipsis;
+
+            &:has(a) {
+                color: $primary;
+            }
         }
     }
 
-- 
GitLab