This repository was archived by the owner on May 31, 2024. It is now read-only.
File tree 4 files changed +18
-6
lines changed
4 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 4
4
< body class ="layout--card category--{{page.category | downcase }} ">
5
5
{% include category-setup.html %} {% include header.html %}
6
6
< main id ="main " role ="main ">
7
- < section class ="category category--{{page.category | downcase }} usa-section usa-prose " id =" {{page.category | downcase }} " >
8
- < header class ="category--header ">
7
+ < section class ="category category--{{page.category | downcase }} usa-section usa-prose ">
8
+ < header class ="category--header " aria-labelledby =" {{method_category.title | downcase }} " >
9
9
< div class ="grid-container ">
10
10
{% assign method_category = site.pages | where: "title", page.category | first %}
11
- < h1 class ="category--title "> {{method_category.title | capitalize }}</ h1 >
11
+ < span class ="category--title " id =" {{method_category.title | downcase } " > {{method_category.title | capitalize }}</ span >
12
12
< p class ="category--subtitle "> {{method_category.description}}</ p >
13
13
</ div >
14
14
</ header >
Original file line number Diff line number Diff line change 124
124
font-size : 1.5rem ;
125
125
margin-top : 2rem ;
126
126
}
127
- h2 {
127
+ h3 {
128
128
font-size : 1.3rem ;
129
129
margin-top : 2rem ;
130
130
}
Original file line number Diff line number Diff line change 18
18
a .heading-permalink :hover ,
19
19
a .heading-permalink :focus {
20
20
opacity : 1 ;
21
+ }
22
+
23
+ // Visually hiding elements
24
+ .visually-hidden {
25
+ position : absolute !important ;
26
+ height : 1px ; width : 1px ;
27
+ overflow : hidden ;
28
+ clip : rect (1px 1px 1px 1px ); /* IE6, IE7 */
29
+ clip : rect (1px , 1px , 1px , 1px );
21
30
}
Original file line number Diff line number Diff line change 5
5
---
6
6
< div class ="usa-section intro-header ">
7
7
< div class ="grid-container ">
8
+ < h1 class ="visually-hidden "> {% if page.title %}
9
+ {{ page.title }}
10
+ {% endif %} </ h1 >
8
11
< p class ="usa-intro no-print "> A collection of tools to bring human-centered design into your project.</ p >
9
12
</ div >
10
13
</ div >
11
14
< div class ="usa-section ">
12
15
{% for category in site.data.categories %}
13
16
< section class ="usa-prose grid-container category usa-section category--{{ category.category_name | downcase }} " id ="{{ category.category_name | downcase }} ">
14
- < h1 class ="category--title category--{{ category.category_name | downcase }}--title "> {{ category.category_name }}</ h1 >
17
+ < h2 class ="category--title category--{{ category.category_name | downcase }}--title "> {{ category.category_name }}</ h2 >
15
18
< div class ="grid-row ">
16
19
< div class ="grid-col-8 ">
17
20
< div class ="category--header usa-content ">
@@ -21,7 +24,7 @@ <h1 class="category--title category--{{ category.category_name | downcase }}--ti
21
24
</ div >
22
25
</ div >
23
26
< div class ="grid-col-4 methods-listing ">
24
- < h2 > Methods include</ h2 >
27
+ < h3 > Methods include</ h3 >
25
28
< ul class ="usa-list ">
26
29
{% for method in category.methods %}
27
30
< li >
You can’t perform that action at this time.
0 commit comments