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 button hover color in cover example #37123

Merged
merged 2 commits into from
Oct 6, 2022
Merged

Fix button hover color in cover example #37123

merged 2 commits into from
Oct 6, 2022

Conversation

jtsimoes
Copy link
Contributor

Hovering the button on the Cover example makes the text white, making it impossible to read on the white background.

This is due to the use of .btn-secondary class (which applies color: var(--bs-btn-hover-color) aka #fff on hover) together with the use of .bg-white class.

This PR fix this issue. I decided to simply switch from .btn-secondary to the .btn-light class, since it is the closest thing to a white button that we have at the moment.

Thus, this class changes the button text on hover to black, providing also a nice transition effect (from #333 to #000) that did not exist before.

v5.1 v5.2 This PR
v5.1 v5.2 Now

Replaced .btn-secondary class with .btn-light
Copy link
Member

@mdo mdo left a comment

Choose a reason for hiding this comment

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

Thanks!

@mdo mdo merged commit 4822984 into twbs:main Oct 6, 2022
@jtsimoes jtsimoes deleted the cover-example-fix branch October 8, 2022 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants