Skip to content

Commit 5fb4105

Browse files
committed
Make accessibility pages look better
1 parent fd65ba3 commit 5fb4105

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

lib/components_guide_web/templates/accessibility_first/content.html.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,15 +227,15 @@ screen.getByRole('separator');
227227

228228
<hr>
229229

230-
<table class="text-left table-fixed">
231-
<caption id=cheatsheet class="text-3xl pb-4 text-left">Content roles cheatsheet</caption>
230+
<table>
231+
<caption id=cheatsheet class="text-left text-2xl font-bold pt-4 pb-8">Content roles cheatsheet</caption>
232232
<thead>
233233
<tr>
234234
<th style="width: 12em">Role name</th>
235235
<th>HTML element</th>
236236
</tr>
237237
</thead>
238-
<tbody class="text-white bg-purple-900 border border-purple-700">
238+
<tbody>
239239
<%= table_rows([
240240
["**link**", "`<a href=…>`"],
241241
["_none!_", "`<a>`"],

lib/components_guide_web/templates/accessibility_first/forms.html.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Accessible Forms with Tests
22

3-
<table class="text-left table-fixed">
4-
<caption class="text-3xl pb-4 text-left">Form roles cheatsheet</caption>
3+
<table>
4+
<caption class="text-left text-2xl font-bold pt-4 pb-8">Form roles cheatsheet</caption>
55
<thead>
66
<tr>
77
<th style="width: 12em">Role name</th>
88
<th>HTML snippet</th>
99
</tr>
1010
</thead>
11-
<tbody class="text-white bg-purple-900 border border-purple-700">
11+
<tbody>
1212
<%= table_rows([
1313
["**form**", "`<form>`"],
1414
["**search**", "`<form role=search>`"],

lib/components_guide_web/templates/accessibility_first/index.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</nav>
99
<div class="mx-auto flex-shrink">
1010
<div class="max-w-xl lg:max-w-4xl px-6 pt-8 pb-16 text-white">
11-
<article class="content">
11+
<article class="prose md:prose-xl prose-invert max-w-4xl mx-auto py-16">
1212
<%= render(view_module(@conn), @article <> ".html", conn: @conn) %>
1313
</article>
1414
</div>

lib/components_guide_web/templates/accessibility_first/roles.html.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
## Available Roles
22

3-
<table class="text-left table-fixed">
4-
<caption class="text-2xl">Landmarks</caption>
3+
<table>
4+
<caption class="text-left text-2xl font-bold pt-4 pb-8">Landmarks</caption>
55
<thead>
66
<tr>
77
<th style="width: 12em">Role name</th>
88
<th>HTML element</th>
99
</tr>
1010
</thead>
11-
<tbody class="text-white bg-purple-900 border border-purple-700">
11+
<tbody class="">
1212
<%= table_rows([
1313
["**main**", "`<main>`"],
1414
["**navigation**", "`<nav>`"],
@@ -23,14 +23,14 @@
2323
</table>
2424

2525
<table class="text-left table-fixed">
26-
<caption class="text-2xl">Content</caption>
26+
<caption class="text-left text-2xl font-bold pt-4 pb-8">Content</caption>
2727
<thead>
2828
<tr>
2929
<th style="width: 12em">Role name</th>
3030
<th>HTML element</th>
3131
</tr>
3232
</thead>
33-
<tbody class="text-white bg-purple-900 border border-purple-700">
33+
<tbody class="">
3434
<%= table_rows([
3535
["**link**", "`<a href=…>`"],
3636
["_none_", "`<a>`"],
@@ -53,14 +53,14 @@
5353
</table>
5454

5555
<table class="text-left table-fixed">
56-
<caption class="text-2xl">Forms</caption>
56+
<caption class="text-left text-2xl font-bold pt-4 pb-8">Forms</caption>
5757
<thead>
5858
<tr>
5959
<th style="width: 12em">Role name</th>
6060
<th>HTML element</th>
6161
</tr>
6262
</thead>
63-
<tbody class="text-white bg-purple-900 border border-purple-700">
63+
<tbody class="">
6464
<%= table_rows([
6565
["**form**", "`<form>`"],
6666
["**group**", "`<fieldset>`"],
@@ -89,14 +89,14 @@
8989
</table>
9090

9191
<table class="text-left table-fixed">
92-
<caption class="text-2xl">Tables</caption>
92+
<caption class="text-left text-2xl font-bold pt-4 pb-8">Tables</caption>
9393
<thead>
9494
<tr>
9595
<th style="width: 12em">Role name</th>
9696
<th>HTML element</th>
9797
</tr>
9898
</thead>
99-
<tbody class="text-white bg-purple-900 border border-purple-700">
99+
<tbody class="">
100100
<%= table_rows([
101101
["**table**", "`<table>`"],
102102
["**rowgroup**", "`<tbody>`, `<thead>`, `<tfoot>`"],
@@ -109,36 +109,36 @@
109109
</table>
110110

111111
<table class="text-left table-fixed">
112-
<caption class="text-2xl">Tabs</caption>
112+
<caption class="text-left text-2xl font-bold pt-4 pb-8">Tabs</caption>
113113
<thead>
114114
<tr>
115115
<th style="width: 12em">Role name</th>
116116
<th>HTML element</th>
117117
</tr>
118118
</thead>
119-
<tbody class="text-white bg-purple-900 border border-purple-700">
119+
<tbody class="">
120120
<%= table_rows([
121121
["**tablist**", "`<ul role=tablist>`"],
122122
["**tab**", "`<button role=tab>`"],
123123
["**tabpanel**", "`<section role=tabpanel>`"],
124124
]) %>
125125
</tbody>
126-
<tfoot class="text-purple-100 bg-purple-900 border border-purple-700">
126+
<tfoot class="text-purple-300">
127127
<tr>
128-
<td colspan=2 class="px-3 py-1"><em>Should</em> manage focus with JavaScript.</td>
128+
<td colspan=2>You <em>should</em> manage focus with JavaScript.</td>
129129
</tr>
130130
</tfoot>
131131
</table>
132132

133133
<table class="text-left table-fixed">
134-
<caption class="text-2xl">Menus</caption>
134+
<caption class="text-left text-2xl font-bold pt-4 pb-8">Menus</caption>
135135
<thead>
136136
<tr>
137137
<th style="width: 12em">Role name</th>
138138
<th>HTML element</th>
139139
</tr>
140140
</thead>
141-
<tbody class="text-white bg-purple-900 border border-purple-700">
141+
<tbody class="">
142142
<%= table_rows([
143143
["**menu**", "`<ul role=menu>`"],
144144
["**menuitem**", "`<button role=menuitem>`"],
@@ -147,9 +147,9 @@
147147
["**menubar**", "`<nav role=menubar>`"],
148148
]) %>
149149
</tbody>
150-
<tfoot class="text-purple-100 bg-purple-900 border border-purple-700">
150+
<tfoot class="text-purple-300">
151151
<tr>
152-
<td colspan=2 class="px-3 py-1"><em>Should</em> manage focus with JavaScript.</td>
152+
<td colspan=2>You <em>should</em> manage focus with JavaScript.</td>
153153
</tr>
154154
</tfoot>
155155
</table>

0 commit comments

Comments
 (0)