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

docs(a11y): fix a number of contrast issues with the dark theme #1334

Merged
merged 8 commits into from Feb 9, 2022

Conversation

thomasheartman
Copy link
Contributor

It seems that some changes (some recent, some older) have introduced a number of contrast issues to the doc dark theme. This PR fixes issues with:

  • the sidebar
  • urls

Most changes should be pretty uncontroversial, but it might be worth discussing the new --ifm-color-primary gradient at some point.

Optionally: we should develop a dark mode palette for Unleash and use that.

@vercel
Copy link

vercel bot commented Feb 4, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/unleash-team/unleash-docs/7arwSptY4sDrcR2Mk8tVahTRWUdL
✅ Preview: https://unleash-docs-git-docs-a11y-dark-theme-fixes-unleash-team.vercel.app

@github-actions
Copy link

github-actions bot commented Feb 4, 2022

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 91.39% 4734/5180
🟢 Branches 80.27% 724/902
🟢 Functions 86.63% 1108/1279
🟢 Lines 91.31% 4636/5077

Test suite run success

789 tests passing in 116 suites.

Report generated by 🧪jest coverage report action from fe69c1d

@@ -25,11 +25,6 @@ module.exports = {
src: 'img/logo.svg',
},
items: [
{
Copy link
Member

Choose a reason for hiding this comment

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

why are you removing these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question! I removed this one because that link doesn't go anywhere new. Now that all docs are on the same page, it doesn't really serve a purpose anymore. The link right next to it ("Unleash") takes you to the same place.

Furthermore, because of the highlighting regex it would sometimes be link-colored, and sometimes not, which is both inconsistent and confusing.

However, I'd be happy to leave it in if you think it still serves a purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ivarconr Thoughts on this? If you'd prefer to leave it in, I'm fine with that, but it'll take a little more styling caution (or maybe just removing the regex?) and it may be more trouble than it's potentially worth.

Copy link
Member

Choose a reason for hiding this comment

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

tbh I was a bit fast and though this was a redirect rule. All fine!

@thomasheartman
Copy link
Contributor Author

@thomasheartman
Copy link
Contributor Author

@thomasheartman
Copy link
Contributor Author

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

4 participants