-
Notifications
You must be signed in to change notification settings - Fork 4
add announcement banner #751
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Abdelsalem <[email protected]>
Signed-off-by: Abdelsalem <[email protected]>
Signed-off-by: Abdelsalem <[email protected]>
f6b4b8c
to
24286de
Compare
Signed-off-by: Abdelsalem <[email protected]>
Signed-off-by: Abdelsalem <[email protected]>
</Box> | ||
<Box sx={mergeSx(styles.banner, isInfo ? styles.infoBg : styles.warningBg)}> | ||
{isInfo && ( | ||
<Box sx={mergeSx(styles.icon, styles.infoIcon)}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't use mergesx for static styles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why ? I don't get the problem here, I made it this way so I don't duplicate the common style between the infoIcon and warningIcon. Did I miss something ?
</Box> | ||
)} | ||
{!isInfo && ( | ||
<Box sx={mergeSx(styles.icon, styles.warningIcon)}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't use mergesx for static styles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not using Alert component instead ? It have all we need.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it's supposed to be the same thing as the banner we already use so it makes more sense to just reuse it and not try to copy it using another component
46eaf43
to
202c72e
Compare
This reverts commit a28344e.
|
No description provided.