Respect prefers-reduced-motion
This commit is contained in:
parent
018b045a1e
commit
7c8ede73cd
7 changed files with 62 additions and 5 deletions
|
|
@ -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...';
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue