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

use default link colors of Bootswatch theme #10102

Merged
merged 1 commit into from
Jul 18, 2019

Conversation

jack-kerouac
Copy link
Contributor

@jack-kerouac jack-kerouac commented Jul 17, 2019

With c55634e, it was decided to override the link color and font-weight of Bootstrap/the Bootswatch theme for passing the Lighthouse accessibility audit.

I think this is a bad idea since 1. the picked color might not match the color scheme of the Bootswatch theme and 2. it should be the responsibility of the theme to consider accessibility concerns and not JHipster building on top of this. This also again reduces the JHipster provided CSS (which I think is in general a good idea).

I thus suggest to remove this custom overriding of the link colors again.

With c55634e, it was decided to override the link color of Bootstrap/the Bootswatch theme for passing the Lighthouse accessibility audit.

I think this is a bad idea since 1. the picked color might not match the color scheme of the Bootswatch theme and 2. it should be the responsibility of the theme to consider accessibility concerns and not JHipster building on top of this.

This commit only applies the link color when no Bootswatch theme is chosen. In this case, the Bootstrap default theme is used and Bootstrap recommends to 'manually modify/extend these default colors [e.g. the link color] to ensure adequate color contrast ratios': https://getbootstrap.com/docs/4.1/getting-started/accessibility/#color-contrast.
@vishal423 vishal423 merged commit d2a0152 into jhipster:master Jul 18, 2019
@vishal423
Copy link
Contributor

thanks @jack-kerouac

@jack-kerouac jack-kerouac deleted the remove-custom-link-color branch July 18, 2019 12:49
@jack-kerouac jack-kerouac changed the title use default link colors of Bootstrap/Bootswatch theme use default link colors of Bootswatch theme Jul 18, 2019
@pascalgrimaud pascalgrimaud added this to the 6.2.0 milestone Jul 30, 2019
@kaidohallik kaidohallik mentioned this pull request Nov 22, 2019
4 tasks
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.

None yet

3 participants