From 67e69773886294fb5def6b29cdf747e1b51d7717 Mon Sep 17 00:00:00 2001 From: Andreas Schultz Date: Mon, 13 Jul 2026 13:11:45 +0200 Subject: [PATCH] Fix pre/code text inside tooltips --- CHANGELOG.md | 5 +++++ src/components/Tooltip/tooltip.scss | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e07c642..754aa122 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ## [Unreleased] +### Fixed + +- ``: + - Code markup inside tooltips was hardly readable because of low contrast. + ## [26.0.0] - 2026-07-08 This is a major release, and it might not be compatible with your current usage of our library. Please read about the necessary changes in the migration section below. diff --git a/src/components/Tooltip/tooltip.scss b/src/components/Tooltip/tooltip.scss index 3bbd4b05..d7805bcd 100644 --- a/src/components/Tooltip/tooltip.scss +++ b/src/components/Tooltip/tooltip.scss @@ -52,6 +52,13 @@ $tooltip-padding-horizontal: $eccgui-size-block-whitespace * 0.5; // !default; transparent ); } + + pre code, + .#{$eccgui}-typography__contentblock pre code, + pre.#{$eccgui}-typography__text code { + background-color: transparent; + color: inherit; + } } .#{$prefix}--tooltip-content {