-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: a11y: heading elements usage and ordering (#1220)
* changes settings page title to h1 * changes sites & applications page title to h1 * changes documentation page title to h1 * changes my space title to h1 * adjusting header order on page to use h2s for what was using h3s before because it was cuasing my space and other layouts to have a skip in the heading order * adjusts more widgets to use h2 instead of h3 * adds back styling for welcome, name * styles widget headers to be bold and the correct font size * corrects spacing in my space area to account for widget header style changes * ensuring styles match for lower level headings with what is in Figma designs and accounts for visual look of being off center in weather widget due to degree symbol having elevated bseline and low visual weight * edits styling around header usage in weather widget * adjusts footer syntax to use h2s instead of h3s so to not break heading order * turns h3 on news page that is not a header to a p * turns h3 on internal news page that is not a header to a p * fixes heading order on about page * changes display name preview to not use h2 element * edits sites & apps test to account for collections having a heading level of 2 * edits custom collection test to account for collections having a heading level of 2 * edits my space test to account for collections having a heading level of 2 * edits collection test to account for collections having a heading level of 2 * edits editable collection test to account for collections having a heading level of 2 * changes the way the page title is searched for in the error layout test to prevent the test from picking up the h2s in the footer * edits news item test to account for change to news component structure where article titles are now h3s instead of h4s * changes the way the page title is searched for in the page layout test to prevent the test from picking up the h2s in the footer * adjusts feedback card test to account for feedback card having an h2 * changes the way the page title is searched for in the article layout test to prevent the test from picking up the h2s in the footer * adjusts test in sites and applications to look for collections by h2 instead of h3 * adjusts h2 on ussf documentation page to align to styles in figma * adjusts widget markup in stories file * adding spacing to personal data * adds space to top of page header --------- Co-authored-by: John Gedeon <[email protected]> Co-authored-by: Jacob Capps <[email protected]>
- Loading branch information
1 parent
ca66333
commit 254b456
Showing
42 changed files
with
92 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ describe('Feedback Card component', () => { | |
render(<FeedbackCard />) | ||
|
||
expect( | ||
screen.getByRole('heading', { level: 3, name: 'Got Feedback?' }) | ||
screen.getByRole('heading', { level: 2, name: 'Got Feedback?' }) | ||
).toBeInTheDocument() | ||
expect( | ||
screen.getByRole('link', { name: '[email protected]' }) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,9 @@ | |
padding: 0 0; | ||
} | ||
|
||
h3 { | ||
h2 { | ||
color: white; | ||
margin: 0; | ||
margin: 0 0 14px 0; | ||
font-size: 18px; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,5 @@ | |
|
||
.featuredShortcuts { | ||
width: 100%; | ||
margin-bottom: 1rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,9 @@ a.articleLink { | |
display: inline; | ||
} | ||
|
||
h4 { | ||
h3 { | ||
margin: 0; | ||
font-size: 1rem; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.