Skip to content

Comments

feat(alert-banner): do not render button section if no buttons passes#757

Closed
nataliadelmar wants to merge 1 commit intomomentum-design:masterfrom
nataliadelmar:alertBannerNotRenderButtonSection
Closed

feat(alert-banner): do not render button section if no buttons passes#757
nataliadelmar wants to merge 1 commit intomomentum-design:masterfrom
nataliadelmar:alertBannerNotRenderButtonSection

Conversation

@nataliadelmar
Copy link
Collaborator

At the moment, AlertBannerNext has an optional property buttons that accepts a ReactElement[]. If not defined, AlertBanner still draws its container, leaving a weird blank space at the end of the banner.

If we have no buttons, we want the space not to be there

image

@nataliadelmar
Copy link
Collaborator Author

we don't need this

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.

1 participant