mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Frontend/Themes: Fix handleMotion function (#94856)
This commit is contained in:
parent
dca881289a
commit
4e93b0f467
@ -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…
Reference in New Issue
Block a user