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

[ TreeView ] Multi Select state doesn't meet high contrast requirements #6729

Merged
merged 11 commits into from
Feb 24, 2022

Conversation

tashatitova
Copy link
Contributor

@tashatitova tashatitova commented Feb 16, 2022

Issue:

In high contrast the selected (checked) item was filled with high contrast color, the known issue with controls that have complex content - the background can't be flooded with Highlight color due to interaction states of content controls, here, Checkbox. On top of that, foreground was picking up states from ContentPresenter, resulting in incorrect high contrast:

multi-select

The fix is to only use borders to indicate hover and selected states going forward. We need to use two border outlines for MultiSelect case since the MultiSelect item selection is set independently of ContentPresenter visual states, so the hover appears on all items, selected or not. Easiest solution to this was to give MultiSelectGrid a border and a margin in high contrast so that inner outline fits within the outer outline.

Tree-View-HC-fix.mp4

Updating focus visuals while at it (overlapped with some of the nested borders):

focus-updated

Multi-select high contrast, edge case scenario, selected item + hover + focus:
focus-hc-=updated

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Feb 16, 2022
@tashatitova
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tashatitova
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tashatitova
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@karkarl
Copy link
Contributor

karkarl commented Feb 23, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tashatitova
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tashatitova tashatitova merged commit 6966e16 into main Feb 24, 2022
@tashatitova tashatitova deleted the user/tatito/treehc branch February 24, 2022 19:19
@StephenLPeters StephenLPeters added accessibility Narrator, keyboarding, UIA, etc area-TreeView team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Narrator, keyboarding, UIA, etc area-TreeView team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants