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

fix: pagination button not being highlighted correctly #725

Merged
merged 4 commits into from
May 25, 2023

Conversation

IuriPires
Copy link
Contributor

@IuriPires IuriPires commented May 1, 2023

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

A unnecessary Tailwind class was being used causing the PaginationButton to not highlight itself correctly when active.

Fixes #719

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change contains documentation update

Breaking changes

Please document the breaking changes if suitable.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

For testing this fix, I ran Storybook locally to make sure the fix would be enough. Now the current page selected button is being highlighted correctly both on light and dark mode.

Test Configuration:

  • Firmware version:
  • Hardware: Macbook Pro M1
  • Toolchain:
  • SDK:

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

@IuriPires IuriPires changed the title #719 #719 | fix: pagination button not being highlighted correctly May 1, 2023
@codecov
Copy link

codecov bot commented May 1, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (8e8531b) 99.43% compared to head (2025a16) 99.43%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #725   +/-   ##
=======================================
  Coverage   99.43%   99.43%           
=======================================
  Files         131      131           
  Lines        6559     6559           
  Branches      493      493           
=======================================
  Hits         6522     6522           
  Misses         37       37           
Impacted Files Coverage Δ
src/lib/theme/default.ts 100.00% <100.00%> (ø)

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

@IuriPires IuriPires changed the title #719 | fix: pagination button not being highlighted correctly fix: pagination button not being highlighted correctly May 12, 2023
@IuriPires
Copy link
Contributor Author

Hey @rluders could you check this one, please? :D

src/lib/theme/default.ts Outdated Show resolved Hide resolved
@rluders rluders merged commit 53c1280 into themesberg:main May 25, 2023
rtraficante pushed a commit to rtraficante/flowbite-react that referenced this pull request May 26, 2023
* fix: removed unnecessary tailwind class

* fix: bg-blue-50 and dark:bg-gray-700 important

---------

Co-authored-by: Ricardo Lüders <[email protected]>
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.

Bug with Pagination as current page selection is not visible.
2 participants