Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(AttentionBox): add prop for enter animation #2566

Merged
merged 5 commits into from
Oct 29, 2024

Conversation

rivka-ungar
Copy link
Contributor

@rivka-ungar rivka-ungar requested a review from a team as a code owner October 28, 2024 10:10
@@ -71,7 +73,9 @@ const AttentionBox: React.FC<AttentionBoxProps> & {

return (
<aside
className={cx(styles.attentionBox, getStyle(styles, camelCase(`type-${type}`)), overrideClassName)}
className={cx(styles.attentionBox, getStyle(styles, camelCase(`type-${type}`)), overrideClassName, {
[styles.animateOnEnter]: animateOnEnter
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this class be removed after the animation ends? or does the animation just works once and you don't care about it afterwards?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok nm, I don't think it matters

@@ -36,6 +36,7 @@ export interface AttentionBoxProps extends VibeComponentProps {
onClose?: (event: React.MouseEvent) => void;
compact?: boolean;
closeButtonAriaLabel?: string;
entryAnimation?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a description to this prop :)

@@ -181,3 +182,38 @@ export const AttentionBoxInsideADialogCombobox = {

name: "Attention box inside a dialog/combobox"
};

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also add live edit?

@rivka-ungar rivka-ungar merged commit 15b20b1 into master Oct 29, 2024
10 checks passed
@rivka-ungar rivka-ungar deleted the attentionbox-add-option-for-animation-7719404878 branch October 29, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants