diff --git a/packages/core/src/components/AttentionBox/AttentionBox.module.scss b/packages/core/src/components/AttentionBox/AttentionBox.module.scss index fc06372c7b..94425c6bad 100644 --- a/packages/core/src/components/AttentionBox/AttentionBox.module.scss +++ b/packages/core/src/components/AttentionBox/AttentionBox.module.scss @@ -1,4 +1,4 @@ -@keyframes enterAnimation { +@keyframes entryAnimation { 0% { transform: translateY(-10px); opacity: 0; @@ -20,8 +20,8 @@ max-width: 100%; height: fit-content; - &.animateOnEnter { - animation: enterAnimation 200ms cubic-bezier(0.00, 0.00, 0.40, 1.00) forwards; + &.entryAnimation { + animation: entryAnimation 200ms cubic-bezier(0.00, 0.00, 0.40, 1.00) forwards; } // Overriding on primary icon color should be with bigger specificity than the original color diff --git a/packages/core/src/components/AttentionBox/AttentionBox.tsx b/packages/core/src/components/AttentionBox/AttentionBox.tsx index 954950c2c7..089ae5163a 100644 --- a/packages/core/src/components/AttentionBox/AttentionBox.tsx +++ b/packages/core/src/components/AttentionBox/AttentionBox.tsx @@ -36,7 +36,7 @@ export interface AttentionBoxProps extends VibeComponentProps { onClose?: (event: React.MouseEvent) => void; compact?: boolean; closeButtonAriaLabel?: string; - animateOnEnter?: boolean; + entryAnimation?: boolean; } const AttentionBox: React.FC & { @@ -61,7 +61,7 @@ const AttentionBox: React.FC & { id, "data-testid": dataTestId, closeButtonAriaLabel = "Close", - animateOnEnter = false + entryAnimation = false }) => { const overrideClassName = backwardCompatibilityForProperties([className, componentClassName]); @@ -74,7 +74,7 @@ const AttentionBox: React.FC & { return (