-
Notifications
You must be signed in to change notification settings - Fork 152
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
fix: Make failure highlight more visible #6164
fix: Make failure highlight more visible #6164
Conversation
@microsoft-github-policy-service agree |
Hi @segamiken , Thanks very much for the contribution! I think this is definitely on the right track visually, @ferBonnin and I have discussed and agree that the new UX you've created is a big improvement over the current highlight boxes. I noticed while testing your changes locally that the new boxes look like they render a pixel or two off, and also that they appear to render the inner white border overtop the inside of the element being highlighted; we think we'd prefer to keep all 3 layers of the highlight box outline on the outside of the element if possible. I've been experimenting locally with an updated version of your changes that use a slightly different CSS technique to achieve that vs what you've done here, with a white box-shadow behind a colored outline instead of using a pseudo-element - it seems promising, but the experiment I have locally needs a bit more work before I send it out. I just wanted to send a status update and acknowledge your contribution - we appreciate your PR, it's just taking us a bit longer than usual to review! |
Hi @dbjorge!
Oh, sorry and thank you for finding this!
I got it! |
I've pushed an update that swaps to the box-shadow + outline version. It updates all the box drawers and their labels. It pushes the determination of box width to CSS to reduce the amount of per-element overhead in
I also fixed up some issues specific to the landmark visualizer; per discussion with @ferBonnin, I included the same white border there but reduced the width of the dashed part from 3px to 2px. I also fixed an issue I noticed with high-contrast-mode rendering of the landmark visualizer's dashed highlight boxes (previously, we used HC colors for the outer box, but not the text label box; this fixes it to be consistent). For reviewers, I recommend including the Deque Mars test page among your smoke tests; it has a lot of failures against non-white backgrounds that are good test cases. Screenshots of new behavior: Tab stops is not changed by this update and would need to be addressed in a separate PR: In Windows HC mode: |
src/injected/styles/injected.scss
Outdated
outline-width: 1px !important; | ||
outline-style: solid !important; | ||
outline-offset: 1px !important; | ||
box-shadow: 0 0 0 3px white !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opinion: I find 1px outline over 3px shadow makes the red outline not stand out as much as I'm used to, especially around images.
I think 2px outline over 4px shadow is a little clearer:
Will totally defer to @ferBonnin here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you mean @peterdur specially for white backgrounds; I agree that 2px makes it more clearer but it also uses more space. I don't feel strongly about one way or another so if we prefer it, lets go with 2px with 4px shadow 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation looks good, built and ran locally. Just one question about whether we want the outline to be a little stronger.
Thanks again for your contribution, @segamiken ! This change will be included in the next Accessibility Insights for Web release. |
@dbjorge |
Details
Motivation
close #5610
Context
I implemented this based on one of the design team's suggestions listed in the issue.
This will make failure highlight more visible, especially for a dark background as in the following picture. However, for pages with white or other background colors, it is not very effective.
screenshots/GIFs to description above
Dark Background
White Background
Pull request checklist
yarn null:autoadd
yarn fastpass
yarn test
)<rootDir>/test-results/unit/coverage
fix:
,chore:
,feat(feature-name):
,refactor:
). SeeCONTRIBUTING.md
.