-
Notifications
You must be signed in to change notification settings - Fork 13
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
CSS-Library: align list styles to uswds #1508
base: main
Are you sure you want to change the base?
Conversation
@rsmithadhoc I tested this with voiceOver and it reads the list items as bullets as expected. The only weird thing I saw was that it reads the list items as "clickable". I don't know why that would be happening or if we have any control over that seeing that we are only setting styles. I'm guessing that is a development/implementation issue. |
I will take a look. I have seen NVDA on Windows do that by default whenever a parent element has a click event attached to it, which we could not fix in certain cases, but I'll look at this on VoiceOver. |
@powellkerry I believe it is a similar issue that I saw with NVDA, but unlike NVDA, VoiceOver does not have a toggle for this. Based on some posts I found, it may be a recent thing, and it led me to this bug report on Chromium. I'm able to reproduce in Chrome running 133.0.6943.142, but not in Brave running Chromium 132. |
@include usa-list; | ||
|
||
li { | ||
@include usa-list-item; |
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.
So fresh and clean! 🚀
@powellkerry I realize that we're limited here, but it is difficult to test with screenshots alone. Is there no way a designer can see this in a browser? Without that, it's hard to say what's right/wrong. I laid the before/after screenshots on top of each other I can see a few differences:
It would also be good to test wrapping and spacing in both styles of lists with different lengths of text in the items (i.e a list with single line items, multiline items, and a mix of both). |
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.
Design looks good from the screenshots.
Waiting to merge because storybook and the documentation site need to be updated to remove formation. Until that is complete it will be hard to adequately test this work. |
Chromatic
https://3396-align-list-uswds--65a6e2ed2314f7b8f98609d8.chromatic.com
Description
Align list styles to USWDS.
Closes 3396
QA Checklist
Screenshots
Before:

After:

Acceptance criteria
Definition of done