Skip to content
Snippets Groups Projects
Unverified Commit b8ccc4af authored by Gustavo Saiani's avatar Gustavo Saiani Committed by GitHub
Browse files

Remove animation from notebook editor under reduced motion (#18532)

parent 41d69e83
No related branches found
No related tags found
No related merge requests found
...@@ -26,4 +26,10 @@ export const NotebookContainer = styled.div` ...@@ -26,4 +26,10 @@ export const NotebookContainer = styled.div`
opacity: 1; opacity: 1;
transform: translateY(0); transform: translateY(0);
`} `}
@media (prefers-reduced-motion) {
// Must have some transition time, if tiny,
// so that it will trigger 'onTransitionEnd' in the component
transition: transform 10ms, opacity 10ms;
}
`; `;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment