You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### What is the specific problem that was occurring?
72
86
<!-- Author Instructions: Add a detailed explanation of the specific accessibility problem, including context about when/where it occurs, what elements are involved, and why it's problematic for assistive technology users -->
73
-
[INSERT CONTENT]
87
+
This alert occurred on the Archived Projects page, caused by a table using td elements in the header, instead of the expected th elements. In this case, the table is really a data table, and the error was triggered since the wrong tag was used.
88
+
If the table is used to set the layout of content on the page, it is recommended to use other CSS features such as Grid or Flexbox to achieve this.
74
89
75
90
#### What is the proposed solution to this problem?
76
91
<!-- Author Instructions: Add a few sentences describing the fix. "Why the Fix Works" comes later (see below). If there are lots of instructions required to explain the solution, include them in Developer Resources below -->
77
-
[INSERT CONTENT]
92
+
Ensure that the table contains a header and `<th>` elements.
78
93
79
94
#### Step-By-Step Guide
80
95
<!-- Author Instructions: Replace details dropdown with N/A if this does not apply -->
81
96
82
97
??? Info "Click to see step-by-step guide"
83
98
84
-
[ADD DETAILED INSTRUCTIONS HERE]
99
+
- n/a
85
100
86
101
87
102
#### Other Technical Details
88
103
<!-- Author Instructions: Write N/A if this does not apply -->
89
104
90
105
??? Info "Click to see other technical details"
91
106
92
-
[INSERT OTHER DETAILS e.g. Prop References, Return Value]
<thclassName={classes.td}>Name</th> // ensure that the table has a header and th elements
123
+
// ...
124
+
</tr>
125
+
</thead>
126
+
<tbodyclassName={classes.tbody}>
127
+
// ...
128
+
</tbody>
129
+
// ...
130
+
);
101
131
```
102
132
103
133
#### Why the Fix Works
104
134
<!-- Author Instruction: Add an explanation of how the code changes resolve the accessibility issue and why this approach was chosen -->
105
-
[INSERT CONTENT]
135
+
Adding a header and th elements to the table fixes the error by making sure the table is interpreted as a data table.
106
136
107
137
#### Where this solution is applicable
108
138
<!-- Author Instruction: Add a bullet point list of scenarios that might trigger this error and would be fixed by applying the provided solution, e.g. particular groupings of html elements, user interactivity, code-specific edge cases -->
109
-
- [INSERT SCENARIO 1]
110
-
- [INSERT SCENARIO 2]
111
-
- [INSERT SCENARIO N]
139
+
- tables
112
140
113
141
#### Screenshots of WAVE Error
114
142
@@ -133,5 +161,4 @@ The following material covers how the Project Team has provided a solution to th
133
161
## Credits/Authors
134
162
<!-- Author Instructions: Add bullet points with GitHub handles of all HfLA members who contributed to this wiki page and/or contributed to Pull Requests that provided solutions for this page -->
0 commit comments