Skip to content

Conversation

@amutsch
Copy link

@amutsch amutsch commented Jan 16, 2024

Updates Dialog Title theme honoring and adds Testing for Dialog Title Updates clean command to use rimraf
Give some love to Dialog example component(fix checkbox example in dark mode)

Issue: #3876

Motivation

Dialog.Title was not honoring the theming of the library

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Was tested in my locale dev app using RNE libs, tested in example app, new JUnit tests introduced to verify and ensure it doesn't break again.

Basic setup of light mode and dark mode. Flip to dark mode and it will not change the text to white.

  • Jest Unit Test
  • Checked with example app

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • [N/A] I have commented my code, particularly in hard-to-understand areas
  • [N/A] I have made corresponding changes to the documentation using yarn docs-build-api
  • 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

Additional context

Base Dialog.Title component was leveraging the react-native text component and there was no chance for the theme to be honored. The Theme was also not being propogated properly.

Updates Dialog Title theme honoring and adds Testing for Dialog Title
Updates clean command to use rimraf
Give some love to Dialog example component(fix checkbox example in dark mode)

Issue: react-native-elements#3876
@codecov
Copy link

codecov bot commented Jan 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a3e52ad) 79.69% compared to head (f44d609) 79.70%.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #3878      +/-   ##
==========================================
+ Coverage   79.69%   79.70%   +0.01%     
==========================================
  Files          87       87              
  Lines        1842     1843       +1     
  Branches      818      819       +1     
==========================================
+ Hits         1468     1469       +1     
  Misses        369      369              
  Partials        5        5              

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

@khushal87
Copy link
Member

Hey @amutsch, please fix the linting issues and commit the changes. Thanks 😄

@amutsch
Copy link
Author

amutsch commented Jan 20, 2024

Thanks for the review @khushal87 , not sure how I missed that on the tests., updated now

@khushal87 khushal87 merged commit c87b7ec into react-native-elements:next Jan 21, 2024
@amutsch amutsch deleted the fix/amutsch/3876/DialogTitleFixes branch January 21, 2024 16:51
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.

2 participants