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: fix color contrast to improve DX #2188

Merged
merged 4 commits into from
Oct 27, 2023

Conversation

saiponnada
Copy link
Contributor

@saiponnada saiponnada commented Oct 19, 2023

Fixes #2187

  • This PR contains CSS changes
  • This PR does not contain CSS changes

Description

Made few CSS changes to improve contrast while reviewing documentation in dark mode.

Notes

Image placeholder's svg might not be visible in dark mode. Checkout the screenshot below. This placeholder svg might need to be replaced in future.

Screenshots

Image Placeholder
Before
image

After
image

EEK
Before
image

After
image

Menu Button highlight

Before
image

After
image

Checklist

  • I verify the build is in a non-broken state
  • I verify all changes are within scope of the linked issue
  • I regenerated all CSS files under dist folder
  • I tested the UI in all supported browsers
  • I did a visual regression check of the components impacted by doing a Percy build and approved the build
  • I tested the UI in dark mode and RTL mode
  • I added/updated/removed Storybook coverage as appropriate

Copy link
Contributor

@ArtBlue ArtBlue left a comment

Choose a reason for hiding this comment

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

If this effort is to fix DX for dark mode, we should use css props for the blue border for the div above too.
image

Also, for some reason, the Image Placeholder link in the sidebar doesn't take me to the Image Placeholder section though the link and div id seem to match. Weird.

@saiponnada saiponnada changed the base branch from 16.8.0 to 16.9.0 October 24, 2023 19:50
@saiponnada saiponnada force-pushed the 2187-docs-improve-contrast-in-dark-mode branch from f015179 to f71656e Compare October 24, 2023 20:03
@saiponnada
Copy link
Contributor Author

Also, for some reason, the Image Placeholder link in the sidebar doesn't take me to the Image Placeholder section though the link and div id seem to match. Weird.

I noticed that. My assumption is it's because the svg also has the same id
<symbol viewBox="0 0 300 300" id="image-placeholder">...</symbol>

Copy link
Contributor

@ArtBlue ArtBlue left a comment

Choose a reason for hiding this comment

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

Looks good.

@saiponnada saiponnada force-pushed the 2187-docs-improve-contrast-in-dark-mode branch from 586b6bd to 0c2b585 Compare October 27, 2023 15:33
@saiponnada saiponnada merged commit 9a488fa into 16.9.0 Oct 27, 2023
2 checks passed
@saiponnada saiponnada deleted the 2187-docs-improve-contrast-in-dark-mode branch October 27, 2023 15:39
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.

2 participants