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(/lib/theme): add Tailwind CSS colors to <Alert>s #586

Merged
merged 10 commits into from
Feb 22, 2023

Conversation

brenoliradev
Copy link
Contributor

@brenoliradev brenoliradev commented Feb 9, 2023

Description

(It's my first PR here lol. Looking forward to fix things if needed. :))

This change starts adding all colors to components in Flowbite. I'll be partially updating the components until I got every of then with all colors from FlowbiteColors avaliable.

Fixes # 473 (partially)

Type of change

  • New feature

How Has This Been Tested?

Since it was a visual change I used the Storybook to validate if colors are changing as expected.

  • Storybook

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

@brenoliradev brenoliradev changed the title Support for all colors in alert sytles(alert): support for all colors in alert Feb 9, 2023
@codecov
Copy link

codecov bot commented Feb 13, 2023

Codecov Report

Base: 99.31% // Head: 99.31% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (eb97ce8) compared to base (2f46d90).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #586   +/-   ##
=======================================
  Coverage   99.31%   99.31%           
=======================================
  Files         131      131           
  Lines        6387     6412   +25     
  Branches      477      477           
=======================================
+ Hits         6343     6368   +25     
  Misses         44       44           
Impacted Files Coverage Δ
src/lib/components/Alert/Alert.tsx 100.00% <100.00%> (ø)
src/lib/theme/default.ts 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

src/lib/components/Alert/Alert.tsx Outdated Show resolved Hide resolved
…o just FlowbiteColors

Since AlertColors now implement all colors from FlowbiteColors I had replaced it
src/lib/components/Alert/Alert.tsx Outdated Show resolved Hide resolved
@tulup-conner tulup-conner marked this pull request as draft February 21, 2023 03:29
@tulup-conner tulup-conner changed the title sytles(alert): support for all colors in alert feat(/lib/theme): add Tailwind CSS colors to <Alert>s Feb 21, 2023
@tulup-conner tulup-conner added this to the 0.4.0 milestone Feb 21, 2023
tulup-conner
tulup-conner previously approved these changes Feb 21, 2023
Copy link
Collaborator

@tulup-conner tulup-conner left a comment

Choose a reason for hiding this comment

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

LGTM

@tulup-conner tulup-conner marked this pull request as ready for review February 21, 2023 22:42
@tulup-conner tulup-conner requested a review from rluders February 21, 2023 22:43
@tulup-conner
Copy link
Collaborator

I can't merge this without a re-review from you @rluders

Copy link
Collaborator

@rluders rluders left a comment

Choose a reason for hiding this comment

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

lgtm. Thank you.

@rluders rluders merged commit 05bde49 into themesberg:main Feb 22, 2023
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