Respect prefers-reduced-motion

This commit is contained in:
Ben Grant 2021-06-03 17:57:55 +10:00
parent 018b045a1e
commit 7c8ede73cd
7 changed files with 62 additions and 5 deletions

View file

@ -23,4 +23,13 @@ export const Loader = styled.div`
border-left-color: transparent;
border-radius: 100px;
animation: load .5s linear infinite;
@media (prefers-reduced-motion: reduce) {
animation: none;
border: 0;
&::before {
content: 'loading...';
}
}
`;