LoadingBar: Use a theme variable instead of hardcoded hex color (#100407)

use the theme variable in our loadingbar instead of a hardcoded hex color
This commit is contained in:
Ashley Harrison 2025-02-11 11:17:15 +00:00 committed by GitHub
parent d48802cdfb
commit d87ef806f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,7 +47,7 @@ const getStyles = (theme: GrafanaTheme2, delay: number, duration: number) => {
bar: css({
width: BAR_WIDTH + '%',
height: 1,
background: 'linear-gradient(90deg, rgba(110, 159, 255, 0) 0%, #6E9FFF 80.75%, rgba(110, 159, 255, 0) 100%)',
background: `linear-gradient(90deg, transparent 0%, ${theme.colors.primary.main} 80.75%, transparent 100%)`,
transform: 'translateX(-100%)',
willChange: 'transform',
[theme.transitions.handleMotion('no-preference')]: {