DesignSystem: Menu and popover styling update to use new elevated background token (#100255)
* DesignSystem: Menu and popover styling tweak proposal * Fix submenu * Themes: Add elevated prop * Update themes * update * Fixed tests * Update * fix markdown lint * Update packages/grafana-data/src/themes/createColors.ts Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com> * Update contribute/style-guides/themes.md Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com> * Update * Update --------- Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
@@ -96,11 +96,12 @@ Example use cases:
|
||||
|
||||
### Background colors
|
||||
|
||||
| Property | When to use |
|
||||
| --------------------------------- | ------------------------------------------------------------------------------------------------ |
|
||||
| theme.colors.background.canvas | Dashboard background. A background surface for panels and panes that use primary background |
|
||||
| theme.colors.background.primary | The default content background for content panes and panels |
|
||||
| theme.colors.background.secondary | For cards and other surfaces that need to stand out when placed on top of the primary background |
|
||||
| Property | When to use |
|
||||
| --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| theme.colors.background.canvas | Dashboard background. A background surface for panels and panes that use primary background |
|
||||
| theme.colors.background.primary | The default content background for content panes and panels |
|
||||
| theme.colors.background.secondary | For cards and other surfaces that need to stand out when placed on top of the primary background |
|
||||
| theme.colors.background.elevated | For popovers and menu backgrounds. This is the same color as primary in most light themes but in dark themes it has a brighter shade to help give it contrast against the primary background |
|
||||
|
||||
### Borders
|
||||
|
||||
|
||||
Reference in New Issue
Block a user