Skip to content

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

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

add announcement banner #751

wants to merge 17 commits into from

Conversation

AbdelHedhili
Copy link
Contributor

No description provided.

Signed-off-by: Abdelsalem <[email protected]>
@AbdelHedhili AbdelHedhili self-assigned this Apr 14, 2025
@AbdelHedhili AbdelHedhili force-pushed the add_announcement_banner branch from f6b4b8c to 24286de Compare April 14, 2025 08:52
</Box>
<Box sx={mergeSx(styles.banner, isInfo ? styles.infoBg : styles.warningBg)}>
{isInfo && (
<Box sx={mergeSx(styles.icon, styles.infoIcon)}>
Copy link
Contributor

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

Copy link
Contributor Author

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)}>
Copy link
Contributor

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

Copy link
Contributor

@Tristan-WorkGH Tristan-WorkGH Apr 15, 2025

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.

Copy link
Contributor Author

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

@TheMaskedTurtle TheMaskedTurtle force-pushed the add_announcement_banner branch from 46eaf43 to 202c72e Compare April 18, 2025 14:04
@ayolab ayolab self-requested a review April 22, 2025 07:47
Copy link

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