forked from deephaven/web-client-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed ListView tooltip styling (deephaven#1890)
- Loading branch information
Showing
2 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.dh-item-tooltip { | ||
--item-tooltip-description-color: var(--spectrum-global-color-gray-700); | ||
--item-tooltip-description-font-size: var( | ||
--spectrum-global-dimension-font-size-75 | ||
); | ||
} | ||
|
||
/** | ||
* The Spectrum ListView styles for item descriptions only apply when the | ||
* description is a child of the ListViewItem. For example, here is a selector | ||
* for the styles: | ||
* .C64cMW_react-spectrum-ListViewItem .C64cMW_react-spectrum-ListViewItem-description | ||
* This will not work in Tooltips where there isn't a wrapping ListViewItem, so | ||
* we copy the necessary styles. | ||
*/ | ||
.dh-item-tooltip-description { | ||
color: var(--item-tooltip-description-color); | ||
font-size: var(--item-tooltip-description-font-size); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters