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

Make buttons easier to read #966

Merged
merged 1 commit into from
Dec 11, 2022

Conversation

gustavothecoder
Copy link
Contributor

@gustavothecoder gustavothecoder commented Dec 10, 2022

What was the end-user problem that led to this PR?

Closes #684

What is your fix for the problem, implemented in this PR?

I changed the .btn-primary colors to #0D7FA5 and #0A6A8A, this colors provide a contrast ration of 4.56:1 and 6.1:1, respectively.

I also renamed the file _bootstrap-overrides.scss to _bootstrap-variable-overrides.scss, and created the file _bootstrap-class-overrides.scss, this modifications is just to improve the code organization.

Screenshots

Before
master
After
white_text_fix
Original colors with black text (just for comparison)
black_text_fix

*The first button has the hover effect active.

Why did you choose this fix out of the possible options?

I chose this fix because it was already discussed before.

Copy link
Member

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

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

I'm neutral on the appearance, but if this one is more accessible, let's do it!

@tnir This is what you proposed, right?

Thanks so much @gustavothecoder!

@tnir tnir self-requested a review December 11, 2022 08:30
@tnir tnir added architecture/legacy or broken Legacy and/or broken architecture accessibility accessibility (a11y) etc. labels Dec 11, 2022
@tnir tnir added this to the Design 4Q milestone Dec 11, 2022
Copy link
Collaborator

@tnir tnir left a comment

Choose a reason for hiding this comment

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

The improved appearance looks good to me as well and I am happy to remove tweaks I introduced in #681 before 2023 🎉
Thanks @gustavothecoder for addressing this.

@tnir tnir merged commit 56340aa into rubygems:master Dec 11, 2022
@gustavothecoder gustavothecoder deleted the make-buttons-easier-to-read branch December 11, 2022 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility accessibility (a11y) etc. architecture/legacy or broken Legacy and/or broken architecture
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make buttons easier to read
3 participants