Skip to content

Commit

Permalink
[core,popover2] Fix heading colors in tooltips in dark mode (#4832)
Browse files Browse the repository at this point in the history
Co-authored-by: Adi Dahiya <adi.dahiya14@gmail.com>
  • Loading branch information
tomshen and adidahiya authored Aug 24, 2021
1 parent fc6915d commit f8a11af
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/core/src/components/popover/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@ $dark-popover-background-color: $dark-gray4 !default;

.#{$ns}-popover-content {
background: $background-color;
}

// Some popovers (like tooltips) invert their foreground/background colors relative
// to what we expect for the theme. In those cases, we need to override global typography
// styles to get the right colors.
.#{$ns}-popover-content,
.#{$ns}-heading {
color: $text-color;
}

Expand Down
7 changes: 7 additions & 0 deletions packages/popover2/src/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ $pt-dark-tooltip2-box-shadow: $pt-dark-popover-box-shadow !default;

.#{$ns}-popover2-content {
background: $background-color;
}

// Some popovers (like tooltips) invert their foreground/background colors relative
// to what we expect for the theme. In those cases, we need to override global typography
// styles to get the right colors.
.#{$ns}-popover2-content,
.#{$ns}-heading {
color: $text-color;
}

Expand Down

1 comment on commit f8a11af

@blueprint-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[core,popover2] Fix heading colors in tooltips in dark mode (#4832)

Previews: documentation | landing | table

Please sign in to comment.