Skip to content

Conversation

@joshblack
Copy link
Member

@joshblack joshblack commented Oct 13, 2022

This PR updates TreeView based on feedback received for WHCM (Windows High Contrast Mode), specifically around focus and hover styles.

https://github.com/github/primer/issues/815#issuecomment-1273922579

By default, it uses a transparent outline in forced-colors: 'active' mode which will be visible in WHCM. For focus, it uses the SelectedItem keyword using the same technique.

Preview of changes: https://www.loom.com/share/3c518ae9c39f4ed7b015010dd03e37c2

Before

Hover

Screen Shot 2022-10-14 at 11 11 30 AM

Focus

Screen Shot 2022-10-14 at 11 11 38 AM

After

Hover

Screen Shot 2022-10-14 at 11 11 46 AM

Focus

Screen Shot 2022-10-14 at 11 11 51 AM

@joshblack joshblack requested review from a team and mperrotti October 13, 2022 19:20
@changeset-bot
Copy link

changeset-bot bot commented Oct 13, 2022

🦋 Changeset detected

Latest commit: b4fcd93

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Oct 13, 2022

size-limit report 📦

Path Size
dist/browser.esm.js 77.66 KB (0%)
dist/browser.umd.js 78.34 KB (0%)

@joshblack joshblack requested a review from colebemis October 13, 2022 19:23
@joshblack joshblack temporarily deployed to github-pages October 13, 2022 19:30 Inactive
@colebemis
Copy link
Contributor

Is it possible to add before/after screenshots to the PR description?

@joshblack
Copy link
Member Author

@colebemis of course! Updated the description with a loom and some screenshots.

@colebemis colebemis merged commit a08997b into main Oct 14, 2022
@colebemis colebemis deleted the fix/tree-view-whcm branch October 14, 2022 20:49
@primer-css primer-css mentioned this pull request Oct 14, 2022
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.

3 participants