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 {