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

Add tag to button component #654

Merged
merged 6 commits into from
Feb 20, 2024
Merged

Add tag to button component #654

merged 6 commits into from
Feb 20, 2024

Conversation

wadjih-bencheikh18
Copy link
Member

Closes : #649

@wadjih-bencheikh18 wadjih-bencheikh18 linked an issue Feb 10, 2024 that may be closed by this pull request
Copy link

cloudflare-workers-and-pages bot commented Feb 10, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: c1c90e4
Status: ✅  Deploy successful!
Preview URL: https://84dd3f93.react-science.pages.dev
Branch Preview URL: https://649-add-count-to-toolbar-ite.react-science.pages.dev

View logs

@codecov-commenter
Copy link

codecov-commenter commented Feb 10, 2024

Codecov Report

Attention: 81 lines in your changes are missing coverage. Please review.

Comparison is base (c944af2) 22.24% compared to head (c1c90e4) 22.17%.

Files Patch % Lines
stories/components/toolbar.stories.tsx 0.00% 33 Missing ⚠️
src/components/button/Button.tsx 20.00% 28 Missing ⚠️
stories/components/button.stories.tsx 0.00% 20 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #654      +/-   ##
==========================================
- Coverage   22.24%   22.17%   -0.07%     
==========================================
  Files         220      220              
  Lines       13081    13166      +85     
  Branches      236      236              
==========================================
+ Hits         2910     2920      +10     
- Misses      10081    10156      +75     
  Partials       90       90              

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

Copy link
Contributor

@stropitek stropitek left a comment

Choose a reason for hiding this comment

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

  • Allow tagProps to be passed to toolbar component as well. If the style prop is passed to tagProps, it should probably not override things like "absolute" which are in the default style.
  • In button and toolbar stories, do not show example with tag in control. Show tag in specific story.
  • Stories with longer tags than 1 chars. Up to 3 chars for the toolbar story to see how it looks like in that case.

src/components/button/Button.tsx Outdated Show resolved Hide resolved
@stropitek
Copy link
Contributor

@wadjih-bencheikh18 There is a conflict left to resolve

@wadjih-bencheikh18
Copy link
Member Author

@stropitek conflict resolved

@stropitek stropitek merged commit bd04e6e into main Feb 20, 2024
12 checks passed
@stropitek stropitek deleted the 649-add-count-to-toolbar-item branch February 20, 2024 07:01
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.

Add "count" (badge) to toolbar item
3 participants