mirror of https://github.com/grafana/grafana.git
				
				
				
			Tooltip: Make tooltip use secondary background color for legible links (#48748)
This commit is contained in:
		
							parent
							
								
									08bee1e682
								
							
						
					
					
						commit
						af57804513
					
				|  | @ -75,8 +75,8 @@ export function createComponents(colors: ThemeColors, shadows: ThemeShadows): Th | ||||||
|       background: input.background, |       background: input.background, | ||||||
|     }, |     }, | ||||||
|     tooltip: { |     tooltip: { | ||||||
|       background: colors.mode === 'light' ? '#555' : '#35383e', |       background: colors.background.secondary, | ||||||
|       text: colors.mode === 'light' ? '#FFF' : colors.text.primary, |       text: colors.text.primary, | ||||||
|     }, |     }, | ||||||
|     dashboard: { |     dashboard: { | ||||||
|       background: colors.background.canvas, |       background: colors.background.canvas, | ||||||
|  |  | ||||||
|  | @ -188,6 +188,9 @@ function getStyles(theme: GrafanaTheme2) { | ||||||
| 
 | 
 | ||||||
|       a { |       a { | ||||||
|         color: ${theme.colors.text.link}; |         color: ${theme.colors.text.link}; | ||||||
|  |       } | ||||||
|  | 
 | ||||||
|  |       a:hover { | ||||||
|         text-decoration: underline; |         text-decoration: underline; | ||||||
|       } |       } | ||||||
|     `;
 |     `;
 | ||||||
|  |  | ||||||
|  | @ -291,9 +291,9 @@ $tooltipLinkColor: $link-color; | ||||||
| $tooltipExternalLinkColor: $external-link-color; | $tooltipExternalLinkColor: $external-link-color; | ||||||
| $graph-tooltip-bg: $dark-1; | $graph-tooltip-bg: $dark-1; | ||||||
| 
 | 
 | ||||||
| $tooltipBackground: #35383e; | $tooltipBackground: #22252b; | ||||||
| $tooltipColor: rgb(204, 204, 220); | $tooltipColor: rgb(204, 204, 220); | ||||||
| $tooltipArrowColor: #35383e; | $tooltipArrowColor: #22252b; | ||||||
| $tooltipBackgroundError: #D10E5C; | $tooltipBackgroundError: #D10E5C; | ||||||
| $tooltipShadow: 0px 4px 8px rgba(24, 26, 27, 0.75); | $tooltipShadow: 0px 4px 8px rgba(24, 26, 27, 0.75); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -282,9 +282,9 @@ $alert-warning-bg: #FAD34A; | ||||||
| $alert-info-bg: #FAD34A; | $alert-info-bg: #FAD34A; | ||||||
| 
 | 
 | ||||||
| // Tooltips and popovers | // Tooltips and popovers | ||||||
| $tooltipBackground: #555; | $tooltipBackground: #F4F5F5; | ||||||
| $tooltipColor: #FFF; | $tooltipColor: rgba(36, 41, 46, 1); | ||||||
| $tooltipArrowColor: #555; | $tooltipArrowColor: #F4F5F5; | ||||||
| $tooltipBackgroundError: #E0226E; | $tooltipBackgroundError: #E0226E; | ||||||
| $tooltipShadow: 0px 4px 8px rgba(24, 26, 27, 0.2); | $tooltipShadow: 0px 4px 8px rgba(24, 26, 27, 0.2); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -161,14 +161,6 @@ $panel-header-no-title-zindex: 1; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .panel-info-content { | .panel-info-content { | ||||||
|   a { |  | ||||||
|     color: $gray-6; |  | ||||||
| 
 |  | ||||||
|     &:hover { |  | ||||||
|       color: darken($white, 10%); |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| 
 |  | ||||||
|   code { |   code { | ||||||
|     white-space: normal; |     white-space: normal; | ||||||
|     word-wrap: break-word; |     word-wrap: break-word; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue