fix(ui): add prefers-reduced-motion support to Tab indicators
Signed-off-by: Johan Persson <johanopersson@gmail.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
---
|
||||
'@backstage/ui': patch
|
||||
---
|
||||
|
||||
Added `prefers-reduced-motion` support to Tab indicator animations. Users with reduced motion preferences will no longer see sliding transitions on the active and hover indicators.
|
||||
|
||||
**Affected components:** Tabs
|
||||
@@ -99,4 +99,11 @@
|
||||
padding-inline: var(--bui-space-2);
|
||||
padding-top: var(--bui-space-4);
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.bui-TabActive,
|
||||
.bui-TabHovered {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user