From e66362ba9f8310e5ac6e08cd9acff579b19a6ced Mon Sep 17 00:00:00 2001 From: David Cho-Lerat Date: Tue, 30 Jan 2024 15:17:14 +0100 Subject: [PATCH] SONAR-21516 Fix the appearance of links for code sections in rules details --- .../src/main/js/components/rules/RuleDescription.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/sonar-web/src/main/js/components/rules/RuleDescription.tsx b/server/sonar-web/src/main/js/components/rules/RuleDescription.tsx index 3bfb8a439af..47bbe762219 100644 --- a/server/sonar-web/src/main/js/components/rules/RuleDescription.tsx +++ b/server/sonar-web/src/main/js/components/rules/RuleDescription.tsx @@ -226,4 +226,8 @@ const StyledHtmlFormatter = styled(HtmlFormatter)` .code-difference-scrollable .code-removed { background-color: ${themeColor('codeLineUncoveredUnderline')}; } + + a:has(code) { + padding-bottom: 0.125rem; + } `; -- 2.39.5