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(elements): add spotlighted number to icon button #1292

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

louptheron
Copy link
Collaborator

@louptheron louptheron commented Jul 30, 2024

Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.49%. Comparing base (fa71cb0) to head (17d8b10).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1292   +/-   ##
=======================================
  Coverage   57.49%   57.49%           
=======================================
  Files          55       55           
  Lines         807      807           
  Branches      274      267    -7     
=======================================
  Hits          464      464           
- Misses        327      343   +16     
+ Partials       16        0   -16     
Flag Coverage Δ
unit 57.49% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@ivangabriele ivangabriele left a comment

Choose a reason for hiding this comment

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

LGTM, mais je l'aurais appelé badgeNumber plutôt que spotlightedNumber ^^.

Copy link
Collaborator

@claire2212 claire2212 left a comment

Choose a reason for hiding this comment

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

Top, on va pouvoir l'utiliser sur Env aussi :-)
Pas besoin, de props pour changer la couleur de fond et celle du texte?

@louptheron
Copy link
Collaborator Author

Pas besoin, de props pour changer la couleur de fond et celle du texte?

J'ai ajouté ces deux props

@@ -76,23 +79,35 @@ export function IconButton({
case Accent.SECONDARY:
return (
<Wrapper>
{!!spotlightedNumber && <SpotlightedNumber size={size}>{spotlightedNumber}</SpotlightedNumber>}
{!!badgeNumber && (
<BadgeNumber backgroundColor={badgeBackgroundColor} color={badgeColor} size={size}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

je vais faire ma relou mais il me semble qu'on s'était dit que les props css on les préfixaient avec $, genre $backgroundColor (désolée j'ai pas fait attention avant)

@louptheron louptheron merged commit e8a123a into main Jul 30, 2024
22 checks passed
@louptheron louptheron deleted the loup/add_number_to_icon_and_improve_side_menu branch July 30, 2024 15:25
@ivangabriele
Copy link
Member

🎉 This PR is included in version 18.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants