-
Notifications
You must be signed in to change notification settings - Fork 1
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: a11y: heading elements usage and ordering #1220
Conversation
…re because it was cuasing my space and other layouts to have a skip in the heading order
…designs and accounts for visual look of being off center in weather widget due to degree symbol having elevated bseline and low visual weight
This pull request has been linked to Shortcut Story #2310: investigate header order implications of hello, $name. |
I have a couple of heading levels I want to double-check on. USSF documentationThe accordion header is H2 and it just looks off to me. Also, the footer H2s are smaller and visually proportional. Can we update the styling of the accordion's H2s? My SpaceThe collection header is not visually an h2. I think this fails 1.3.1-heading-level. See the failing example from the Windows course docs
|
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.
Everything is good to go within the scope of this pr!
…st to prevent the test from picking up the h2s in the footer
…e where article titles are now h3s instead of h4s
…t to prevent the test from picking up the h2s in the footer
…test to prevent the test from picking up the h2s in the footer
re: myspace page 1.3.1 means that h2s are less visually prominent than h1s and more visaully promient than h3s. based on that, this would pass. I do think we need to update the design system docs in storybook to reflect the changes in what an h1-h5 is though. |
…ntics' into sc-2310-header-welcome-name-semantics
SC-2310
Proposed changes
In accordance with the Trusted Tester 10: Content Test IDs
Welcome, $name
Personal Data
component, as well as the preview for it to not use a header element. This h2 ussage was not correct and broke the header orderTO DO: fix all the unit tests this affects :')
Reviewer notes
there are design system implications to this change. both in figma and storybook we need to make adjustments to our design tokens to reflect different font sizes being assigned to the h2/h3 elements than initally anticipates
this PR changes the semantic output of these elements, and if visual changes were made they were done in accordance with Figma designs, details I think may have been missed when they are first styles (for example Widget headers being bold)
e2e tests: https://github.com/USSF-ORBIT/ussf-portal/pull/371
Setup
Login to the portal http://localhost:3000
Start storybook
Login to storybook http://localhost:6006, though the command above should open it for you
Screenshots