Frontend/Themes: Fix handleMotion function (#94856)

pull/94795/head
kay delaney 9 months ago committed by GitHub
parent dca881289a
commit 4e93b0f467
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/grafana-data/src/themes/createTransitions.ts

@ -56,7 +56,7 @@ export function create(props: string | string[] = ['all'], options: CreateTransi
type ReducedMotionProps = 'no-preference' | 'reduce';
export function handleMotion(...props: ReducedMotionProps[]) {
return props.map((prop) => `@media (prefers-reduced-motion: ${prop})`).join(',');
return `@media ${props.map((prop) => `(prefers-reduced-motion: ${prop})`).join(',')}`;
}
export function getAutoHeightDuration(height: number) {

Loading…
Cancel
Save