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

[High Contrast Mode] Steps, timelines, and comment lists #8223

Merged
merged 10 commits into from
Dec 12, 2024

Conversation

cee-chen
Copy link
Contributor

@cee-chen cee-chen commented Dec 11, 2024

Summary

Note

This PR merges into a feature branch.

Basically all the components that have some kind of vertical/horizontal timeline UI to them. Also cleaned up some CSS (particularly around steps focus outlines/box shadows) and docs along the way.

QA

Components should also have VRT screenshots added - feel free to refer to those.

General checklist

  • Browser QA
    • Checked in both light and dark modes
    • Checked in both MacOS and Windows high contrast modes
    • Checked for accessibility including keyboard-only and screenreader modes
      - [ ] Checked in Chrome, Safari, Edge, and Firefox
      - [ ] Checked in mobile
  • Docs site QA - N/A
  • Code quality checklist
  • Release checklist - N/A, feature branch
  • Designer checklist - N/A

…e-height

- lets us remove/clean up a bunch of CSS

+ memoize styles while here

+ update VRT while here - no meaningful regressions AFAICT
+ improve `disabled` visibility in Windows high contrast
- switch to pseudo elements and borders to allow rendering

- I did rerun VRT for this step but apparently nothing changed for non-high-contrast modes. Huzzah
- only using 1px thick borders around items compared to steps - this is to match the corresponding EuiPanels better and also because the content is different

+ update VRT
… avatars

- remove unnecessary `line-height` and `text-align: center` - flex centering already handles this automatically, and `line-height` is causing bizarre scrollbar issues

- remove unnecessary overflow direction in favor of hiding overflow in all directions - there is no scenario in which we would want avatar content to be visible outside the circle

- syntax - simplify logical sizing, replace calc with `mathWithUnits`

- reran VRT, no changes
- add colored borders to update event types

- remove duplicate panel borders in headers

- add high contrast story that shows more edge cases
@cee-chen cee-chen marked this pull request as ready for review December 11, 2024 22:02
@cee-chen cee-chen requested a review from a team as a code owner December 11, 2024 22:02
Copy link
Contributor

@mgadewoll mgadewoll left a comment

Choose a reason for hiding this comment

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

🚢 🐈‍⬛ The components work/look nice in high contrast modes! Code lgtm 👍
I left a couple of non-blocking comments.

@kibanamachine
Copy link

Preview staging links for this PR:

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

@cee-chen cee-chen merged commit 60959c5 into elastic:high-contrast-mode Dec 12, 2024
4 checks passed
@cee-chen cee-chen deleted the high-contrast-mode-8 branch December 12, 2024 17:18
@cee-chen cee-chen mentioned this pull request Dec 12, 2024
10 tasks
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.

4 participants