An open source design system that's fully customizable and agent ready
TypeScript
fix(Banner): use duration and ease tokens for chevron transition (#2533)
Cindy Zhang0cdddcffebf7
diff --git a/packages/core/src/Banner/XDSBanner.tsx b/packages/core/src/Banner/XDSBanner.tsxindex 51f8790a8e..8dfeaa5fa6 100644--- a/packages/core/src/Banner/XDSBanner.tsx+++ b/packages/core/src/Banner/XDSBanner.tsx@@ -37,6 +37,8 @@ import {fontWeightVars,typeScaleVars,borderVars,+ durationVars,+ easeVars,} from '../theme/tokens.stylex';import {xdsClassName, mergeProps} from '../utils';import {edgeCompSlot} from '../Layout/edgeCompensation.stylex';@@ -285,7 +287,9 @@ const styles = stylex.create({},chevron: {display: 'inline-flex',- transition: 'transform 150ms ease',+ transitionProperty: 'transform',+ transitionDuration: durationVars['--duration-fast'],+ transitionTimingFunction: easeVars['--ease-standard'],},chevronExpanded: {transform: 'rotate(180deg)',