desy-html 8.5.0 → 8.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/docs/_macro.example-render.njk +1 -1
  2. package/docs/_macro.show-code-from-file.njk +4 -4
  3. package/docs/_macro.show-html-from-file.njk +4 -3
  4. package/docs/ds/_ds.example.layout-escritorio.njk +12 -12
  5. package/docs/ds/_ds.example.layout-movil.njk +4 -4
  6. package/docs/ds/_ds.example.layout-sidebar.njk +1 -1
  7. package/docs/ds/_ds.example.typography.njk +1 -1
  8. package/docs/ds/_ds.macro.code-snippet.njk +2 -2
  9. package/docs/ds/_ds.macro.section-title.njk +1 -1
  10. package/docs/ds/_ds.macro.subsection-title.njk +1 -1
  11. package/docs/ds/_ds.section.espaciado.njk +154 -16
  12. package/docs/ds/_ds.section.textos.njk +216 -142
  13. package/docs/index.html +12 -0
  14. package/package.json +1 -1
  15. package/src/js/aria/MenuHorizontal.js +58 -0
  16. package/src/js/aria/MenuNavigation.js +115 -0
  17. package/src/js/aria/MenubarAction.js +210 -164
  18. package/src/js/aria/tabs.js +4 -4
  19. package/src/js/desy-html.js +20 -0
  20. package/src/js/index.js +4 -0
  21. package/src/templates/components/accordion/_template.accordion.njk +2 -1
  22. package/src/templates/components/accordion-history/_template.accordion-history.njk +2 -1
  23. package/src/templates/components/header/_template.header.header__offcanvas.njk +1 -0
  24. package/src/templates/components/header/_template.header.header__offcanvasButton.njk +1 -0
  25. package/src/templates/components/menu-horizontal/_examples.menu-horizontal.njk +5 -3
  26. package/src/templates/components/menu-horizontal/_template.menu-horizontal.njk +2 -2
  27. package/src/templates/components/menu-navigation/_examples.menu-navigation.njk +90 -63
  28. package/src/templates/components/menu-navigation/_styles.menu-navigation.css +4 -0
  29. package/src/templates/components/menu-navigation/_template.menu-navigation.njk +5 -21
  30. package/src/templates/components/menu-navigation/params.menu-navigation.yaml +4 -0
  31. package/src/templates/components/menubar/_examples.menubar.njk +156 -3
  32. package/src/templates/components/menubar/_template.menubar.njk +2 -2
  33. package/src/templates/components/modal/_template.modal.njk +1 -1
  34. package/src/templates/components/notification/_template.notification.njk +1 -1
  35. package/src/templates/components/pagination/_template.pagination.njk +12 -6
@@ -301,7 +301,7 @@ import componentTree %}
301
301
  }
302
302
  }) %}
303
303
  {{ componentTabs({
304
- "tablistAriaLabel": "Tab example",
304
+ "tablistAriaLabel": "Ejemplos de código de: " + example.name | capitalize,
305
305
  "idPrefix": "tab-" + loop.index,
306
306
  "classes": "c-tabs--scroll",
307
307
  "items": [
@@ -30,23 +30,23 @@ import componentTabs %}
30
30
  {% endset %}
31
31
  {% call componentDetails({
32
32
  "summary": {
33
- "html": 'Mostrar código<span class="sr-only">del ejemplo: ' + filePath + '</span>',
33
+ "html": 'Mostrar código<span class="sr-only"> del ejemplo: ' + filePath + '</span>',
34
34
  "classes": "c-link text-sm"
35
35
  }
36
36
  }) %}
37
37
  {{ componentTabs({
38
- "tablistAriaLabel": "Tab example",
38
+ "tablistAriaLabel": "Ejemplo de código de: " + filePath,
39
39
  "idPrefix": "tab-" + filePath | replace("/", "-") | replace("_", "") | replace(".", "-"),
40
40
  "classes": "c-tabs--scroll",
41
41
  "items": [
42
42
  {
43
- "text": "Nunjucks macro",
43
+ "html": 'Nunjucks macro<span class="sr-only"> del ejemplo: '+ filePath +'</span>',
44
44
  "panel": {
45
45
  "html": nunjucksContent | trim
46
46
  }
47
47
  },
48
48
  {
49
- "text": "HTML",
49
+ "html": 'HTML<span class="sr-only"> del ejemplo: '+ filePath +'</span>',
50
50
  "panel": {
51
51
  "html": htmlContent | trim
52
52
  }
@@ -20,17 +20,18 @@ import componentTabs %}
20
20
  {% endset %}
21
21
  {% call componentDetails({
22
22
  "summary": {
23
- "html": 'Mostrar código<span class="sr-only">del ejemplo: ' + filePath + '</span>',
23
+ "html": 'Mostrar código<span class="sr-only"> del ejemplo: ' + filePath + '</span>',
24
24
  "classes": "c-link text-sm"
25
25
  }
26
26
  }) %}
27
27
  {{ componentTabs({
28
- "tablistAriaLabel": "Tab example",
28
+ "tablistAriaLabel": "Ejemplo de código de: " + filePath,
29
29
  "idPrefix": "tab-" + filePath | replace("/", "-") | replace("_", "") | replace(".", "-"),
30
30
  "classes": "c-tabs--scroll",
31
+ "headingLevel": 4,
31
32
  "items": [
32
33
  {
33
- "text": "HTML",
34
+ "html": 'HTML<span class="sr-only"> del ejemplo: '+ filePath +'</span>',
34
35
  "panel": {
35
36
  "html": htmlContent | trim
36
37
  }
@@ -1,35 +1,35 @@
1
- <div class="grid grid-cols-2 lg:grid-cols-4 gap-lg">
1
+ <div class="grid grid-cols-2 lg:grid-cols-4 gap-lg" role="img" aria-label="Imagen de retícula de página con una barras que ocupan diferentes porcentajes de la anchura total disponible en escritorio: hay una de 100%, dos de 50% una al lado de la otra y dos ejemplos de zona de contenido con zona de sidebar en el lateral y, por último, un ejemplo de 4 columnas contigual con misma anchura de un cuarto del espacio disponible.">
2
2
  <div class="col-span-2 lg:col-span-4">
3
- <span class="bg-neutral-light h-12 flex items-center justify-center">100%</span>
3
+ <span class="bg-primary-base text-white h-12 flex items-center justify-center">100%</span>
4
4
  </div>
5
5
  <div class="col-span-2 lg:col-span-2">
6
- <span class="bg-neutral-light h-12 flex items-center justify-center">50%</span>
6
+ <span class="bg-primary-base text-white h-12 flex items-center justify-center">50%</span>
7
7
  </div>
8
8
  <div class="col-span-2 lg:col-span-2">
9
- <span class="bg-neutral-light h-12 flex items-center justify-center">50%</span>
9
+ <span class="bg-primary-base text-white h-12 flex items-center justify-center">50%</span>
10
10
  </div>
11
11
  <div class="col-span-2 lg:col-span-3">
12
- <span class="bg-neutral-light h-12 flex items-center justify-center">75%</span>
12
+ <span class="bg-primary-base text-white h-12 flex items-center justify-center">75%</span>
13
13
  </div>
14
14
  <div class="col-span-2 lg:col-span-1">
15
- <span class="bg-neutral-light h-12 flex items-center justify-center">25%</span>
15
+ <span class="bg-primary-base text-white h-12 flex items-center justify-center">25%</span>
16
16
  </div>
17
17
  <div class="col-span-2 lg:col-span-1">
18
- <span class="bg-neutral-light h-12 flex items-center justify-center">25%</span>
18
+ <span class="bg-primary-base text-white h-12 flex items-center justify-center">25%</span>
19
19
  </div>
20
20
  <div class="col-span-2 lg:col-span-3">
21
- <span class="bg-neutral-light h-12 flex items-center justify-center">75%</span>
21
+ <span class="bg-primary-base text-white h-12 flex items-center justify-center">75%</span>
22
22
  </div>
23
23
  <div class="col-span-2 lg:col-span-1">
24
- <span class="bg-neutral-light h-12 flex items-center justify-center">25%</span>
24
+ <span class="bg-primary-base text-white h-12 flex items-center justify-center">25%</span>
25
25
  </div>
26
26
  <div class="col-span-2 lg:col-span-1">
27
- <span class="bg-neutral-light h-12 flex items-center justify-center">25%</span>
27
+ <span class="bg-primary-base text-white h-12 flex items-center justify-center">25%</span>
28
28
  </div>
29
29
  <div class="col-span-2 lg:col-span-1">
30
- <span class="bg-neutral-light h-12 flex items-center justify-center">25%</span>
30
+ <span class="bg-primary-base text-white h-12 flex items-center justify-center">25%</span>
31
31
  </div>
32
32
  <div class="col-span-2 lg:col-span-1">
33
- <span class="bg-neutral-light h-12 flex items-center justify-center">25%</span>
33
+ <span class="bg-primary-base text-white h-12 flex items-center justify-center">25%</span>
34
34
  </div>
35
35
  </div>
@@ -1,11 +1,11 @@
1
- <div class="grid grid-cols-2 gap-lg col-span-1">
1
+ <div class="grid grid-cols-2 gap-lg col-span-1" role="img" aria-label="Imagen de retícula y 3 columnas, una que ocupa 100% de la anchura disponible, y otras dos que ocupan la mitad una al lado de la otra">
2
2
  <div class="col-span-2">
3
- <span class="bg-neutral-light h-12 flex items-center justify-center">100%</span>
3
+ <span class="bg-primary-base text-white h-12 flex items-center justify-center">100%</span>
4
4
  </div>
5
5
  <div class="col-span-1">
6
- <span class="bg-neutral-light h-12 flex items-center justify-center">50%</span>
6
+ <span class="bg-primary-base text-white h-12 flex items-center justify-center">50%</span>
7
7
  </div>
8
8
  <div class="col-span-1">
9
- <span class="bg-neutral-light h-12 flex items-center justify-center">50%</span>
9
+ <span class="bg-primary-base text-white h-12 flex items-center justify-center">50%</span>
10
10
  </div>
11
11
  </div>
@@ -1,4 +1,4 @@
1
- <div class="grid grid-cols-2 lg:grid-cols-4 gap-lg">
1
+ <div class="grid grid-cols-2 lg:grid-cols-4 gap-lg" role="img" aria-label="Imagen de retícula de página con una barras que ocupan diferentes porcentajes de la anchura total disponible">
2
2
  <div class="col-span-2 lg:col-span-3">
3
3
  Zona de contenido (75% en escritorio, 100% en móvil)
4
4
  </div>
@@ -1,4 +1,4 @@
1
- <div class="prose prose-base max-w-none mx-auto">
1
+ <div class="prose prose-base max-w-none mx-auto" lang="en">
2
2
  <p class="lead">Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.</p>
3
3
  <p>
4
4
  By default, Tailwind removes all of the default browser styling from paragraphs, headings, lists and more. This ends up being really useful for building application UIs because you spend less time undoing user-agent styles, but when you
@@ -15,12 +15,12 @@
15
15
  }
16
16
  }) %}
17
17
  {{ componentTabs({
18
- "tablistAriaLabel": "Tab example",
18
+ "tablistAriaLabel": "Ejemplo de código de: " + params,
19
19
  "idPrefix": "tab-" + params,
20
20
  "classes": "c-tabs--scroll",
21
21
  "items": [
22
22
  {
23
- "text": "HTML",
23
+ "html": 'HTML<span class="sr-only"> del ejemplo: '+ params +'</span>',
24
24
  "panel": {
25
25
  "html": htmlContent | trim | safe
26
26
  }
@@ -1,3 +1,3 @@
1
1
  {% macro DSSectionTitle(params) %}
2
- <h2 id="{{ params.title | filterslugify }}" class="c-h2 mb-xl pb-sm border-b group">{{params.title}} <a href="#{{ params.title | filterslugify }}" class="hidden font-semibold text-neutral-base underline group-hover:inline-block">#</a></h2>
2
+ <h2 id="{{ params.title | filterslugify }}" class="c-h2 mb-xl pb-sm border-b group">{{params.title}} <a href="#{{ params.title | filterslugify }}" class="hidden font-semibold text-neutral-base underline group-hover:inline-block"><span class="sr-only">Enlace al apartado: {{ params.title }}</span><span aria-hidden="true" title="Enlace al apartado: {{ params.title }}">#</span></a></h2>
3
3
  {% endmacro %}
@@ -1,3 +1,3 @@
1
1
  {% macro DSSubsectionTitle(params) %}
2
- <h3 id="{{ params.title | filterslugify }}" class="c-h3 mb-xl group">{{ params.title }} <a href="#{{ params.title | filterslugify }}" class="hidden font-semibold text-neutral-base underline group-hover:inline-block">#</a></h3>
2
+ <h3 id="{{ params.title | filterslugify }}" class="c-h3 mb-xl group">{{ params.title }} <a href="#{{ params.title | filterslugify }}" class="hidden font-semibold text-neutral-base underline group-hover:inline-block"><span class="sr-only">Enlace al apartado: {{ params.title }}</span><span aria-hidden="true" title="Enlace al apartado: {{ params.title }}">#</span></a></h3>
3
3
  {% endmacro %}
@@ -32,7 +32,12 @@
32
32
  <td>4px</td>
33
33
  <td><code>pr-xs</code></td>
34
34
  <td class="hidden sm:table-cell">
35
- <div class="inline-block pr-xs h-4 bg-primary-light"></div>
35
+ <div class="inline-block pr-xs h-4 bg-primary-base text-transparent overflow-hidden" role="img" aria-label="espaciado xs"><span class="sr-only">|</span></div>
36
+ </td>
37
+ </tr>
38
+ <tr class="sm:hidden">
39
+ <td colspan="4">
40
+ <div class="inline-block pr-xs h-4 bg-primary-base text-transparent overflow-hidden" role="img" aria-label="espaciado xs"><span class="sr-only">|</span></div>
36
41
  </td>
37
42
  </tr>
38
43
  <tr>
@@ -41,7 +46,12 @@
41
46
  <td>8px</td>
42
47
  <td><code>pr-sm</code></td>
43
48
  <td class="hidden sm:table-cell">
44
- <div class="inline-block pr-sm h-4 bg-primary-light"></div>
49
+ <div class="inline-block pr-sm h-4 bg-primary-base text-transparent overflow-hidden" role="img" aria-label="espaciado sm"><span class="sr-only">||</span></div>
50
+ </td>
51
+ </tr>
52
+ <tr class="sm:hidden">
53
+ <td colspan="4">
54
+ <div class="inline-block pr-sm h-4 bg-primary-base text-transparent overflow-hidden" role="img" aria-label="espaciado sm"><span class="sr-only">||</span></div>
45
55
  </td>
46
56
  </tr>
47
57
  <tr>
@@ -50,7 +60,12 @@
50
60
  <td>16px</td>
51
61
  <td><code>pr-base</code></td>
52
62
  <td class="hidden sm:table-cell">
53
- <div class="inline-block pr-base h-4 bg-primary-light"></div>
63
+ <div class="inline-block pr-base h-4 bg-primary-base text-transparent overflow-hidden" role="img" aria-label="espaciado base"><span class="sr-only">||||</span></div>
64
+ </td>
65
+ </tr>
66
+ <tr class="sm:hidden">
67
+ <td colspan="4">
68
+ <div class="inline-block pr-base h-4 bg-primary-base text-transparent overflow-hidden" role="img" aria-label="espaciado base"><span class="sr-only">||||</span></div>
54
69
  </td>
55
70
  </tr>
56
71
  <tr>
@@ -59,7 +74,12 @@
59
74
  <td>28px</td>
60
75
  <td><code>pr-lg</code></td>
61
76
  <td class="hidden sm:table-cell">
62
- <div class="inline-block pr-lg h-4 bg-primary-light"></div>
77
+ <div class="inline-block pr-lg h-4 bg-primary-base text-transparent overflow-hidden" role="img" aria-label="espaciado lg"><span class="sr-only">|||||||</span></div>
78
+ </td>
79
+ </tr>
80
+ <tr class="sm:hidden">
81
+ <td colspan="4">
82
+ <div class="inline-block pr-lg h-4 bg-primary-base text-transparent overflow-hidden" role="img" aria-label="espaciado lg"><span class="sr-only">|||||||</span></div>
63
83
  </td>
64
84
  </tr>
65
85
  <tr>
@@ -68,7 +88,12 @@
68
88
  <td>40px</td>
69
89
  <td><code>pr-xl</code></td>
70
90
  <td class="hidden sm:table-cell">
71
- <div class="inline-block pr-xl h-4 bg-primary-light"></div>
91
+ <div class="inline-block pr-xl h-4 bg-primary-base text-transparent overflow-hidden" role="img" aria-label="espaciado xl"><span class="sr-only">||||||||||</span></div>
92
+ </td>
93
+ </tr>
94
+ <tr class="sm:hidden">
95
+ <td colspan="4">
96
+ <div class="inline-block pr-xl h-4 bg-primary-base text-transparent overflow-hidden" role="img" aria-label="espaciado xl"><span class="sr-only">||||||||||</span></div>
72
97
  </td>
73
98
  </tr>
74
99
  <tr>
@@ -77,7 +102,12 @@
77
102
  <td>80px</td>
78
103
  <td><code>pr-2xl</code></td>
79
104
  <td class="hidden sm:table-cell">
80
- <div class="inline-block pr-2xl h-4 bg-primary-light"></div>
105
+ <div class="inline-block pr-2xl h-4 bg-primary-base text-transparent overflow-hidden" role="img" aria-label="espaciado 2xl"><span class="sr-only">||||||||||||||||||||</span></div>
106
+ </td>
107
+ </tr>
108
+ <tr class="sm:hidden">
109
+ <td colspan="4">
110
+ <div class="inline-block pr-2xl h-4 bg-primary-base text-transparent overflow-hidden" role="img" aria-label="espaciado 2xl"><span class="sr-only">||||||||||||||||||||</span></div>
81
111
  </td>
82
112
  </tr>
83
113
  <tr>
@@ -86,7 +116,12 @@
86
116
  <td>160px</td>
87
117
  <td><code>pr-3xl</code></td>
88
118
  <td class="hidden sm:table-cell">
89
- <div class="inline-block pr-3xl h-4 bg-primary-light"></div>
119
+ <div class="inline-block pr-3xl h-4 bg-primary-base text-transparent overflow-hidden" role="img" aria-label="espaciado 3xl"><span class="sr-only">||||||||||||||||||||||||||||||||||||||||</span></div>
120
+ </td>
121
+ </tr>
122
+ <tr class="sm:hidden">
123
+ <td colspan="4">
124
+ <div class="inline-block pr-3xl h-4 bg-primary-base text-transparent overflow-hidden" role="img" aria-label="espaciado 3xl"><span class="sr-only">||||||||||||||||||||||||||||||||||||||||</span></div>
90
125
  </td>
91
126
  </tr>
92
127
  </tbody>
@@ -118,7 +153,7 @@
118
153
  <td>320px</td>
119
154
  <td><code>w-xs</code></td>
120
155
  <td class="hidden sm:table-cell">
121
- <div class="inline-block w-xs h-4 bg-primary-light"></div>
156
+ <div class="inline-block w-xs h-4 bg-primary-base text-transparent overflow-hidden"><span class="sr-only">||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||</span></div>
122
157
  </td>
123
158
  </tr>
124
159
  <tr>
@@ -127,7 +162,7 @@
127
162
  <td>384px</td>
128
163
  <td><code>w-sm</code></td>
129
164
  <td class="hidden sm:table-cell">
130
- <div class="inline-block w-sm h-4 bg-primary-light"></div>
165
+ <div class="inline-block w-sm h-4 bg-primary-base text-transparent overflow-hidden"><span class="sr-only">||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||</span></div>
131
166
  </td>
132
167
  </tr>
133
168
  <tr>
@@ -136,7 +171,7 @@
136
171
  <td>448px</td>
137
172
  <td><code>w-md</code></td>
138
173
  <td class="hidden sm:table-cell">
139
- <div class="inline-block w-md h-4 bg-primary-light"></div>
174
+ <div class="inline-block w-md h-4 bg-primary-base text-transparent overflow-hidden"><span class="sr-only">||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||</span></div>
140
175
  </td>
141
176
  </tr>
142
177
  <tr>
@@ -145,7 +180,7 @@
145
180
  <td>512px</td>
146
181
  <td><code>w-lg</code></td>
147
182
  <td class="hidden sm:table-cell">
148
- <div class="inline-block w-lg h-4 bg-primary-light"></div>
183
+ <div class="inline-block w-lg h-4 bg-primary-base text-transparent overflow-hidden"><span class="sr-only">||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||</span></div>
149
184
  </td>
150
185
  </tr>
151
186
  <tr>
@@ -154,11 +189,96 @@
154
189
  <td>576px</td>
155
190
  <td><code>w-xl</code></td>
156
191
  <td class="hidden sm:table-cell">
157
- <div class="inline-block w-xl h-4 bg-primary-light"></div>
192
+ <div class="inline-block w-xl h-4 bg-primary-base text-transparent overflow-hidden"><span class="sr-only">||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||</span></div>
158
193
  </td>
159
194
  </tr>
160
195
  </tbody>
161
196
  </table>
197
+ <div class="max-w-full overflow-x-auto">
198
+ <table>
199
+ <thead>
200
+ <tr>
201
+ <th>Nombre</th>
202
+ <th>Tamaño</th>
203
+ <th>Pixels</th>
204
+ <th>Ejemplo de clases</th>
205
+ <th class="hidden sm:table-cell"><span class="sr-only">Previsualización</span></th>
206
+ </tr>
207
+ </thead>
208
+ <tbody>
209
+ <tr>
210
+ <td>xs</td>
211
+ <td>20rem</td>
212
+ <td>320px</td>
213
+ <td><code>w-xs</code></td>
214
+ <td class="hidden sm:table-cell">
215
+ <div class="inline-block w-xs h-4 bg-primary-base"></div>
216
+ </td>
217
+ </tr>
218
+ <tr class="sm:hidden">
219
+ <td colspan="4">
220
+ <div class="inline-block w-xs h-4 bg-primary-base" role="img" aria-label="anchura xs"></div>
221
+ </td>
222
+ </tr>
223
+ <tr>
224
+ <td>sm</td>
225
+ <td>24rem</td>
226
+ <td>384px</td>
227
+ <td><code>w-sm</code></td>
228
+ <td class="hidden sm:table-cell">
229
+ <div class="inline-block w-sm h-4 bg-primary-base"></div>
230
+ </td>
231
+ </tr>
232
+ <tr class="sm:hidden">
233
+ <td colspan="4">
234
+ <div class="inline-block w-sm h-4 bg-primary-base" role="img" aria-label="anchura sm"></div>
235
+ </td>
236
+ </tr>
237
+ <tr>
238
+ <td>md</td>
239
+ <td>28rem</td>
240
+ <td>448px</td>
241
+ <td><code>w-md</code></td>
242
+ <td class="hidden sm:table-cell">
243
+ <div class="inline-block w-md h-4 bg-primary-base"></div>
244
+ </td>
245
+ </tr>
246
+ <tr class="sm:hidden">
247
+ <td colspan="4">
248
+ <div class="inline-block w-md h-4 bg-primary-base" role="img" aria-label="anchura md"></div>
249
+ </td>
250
+ </tr>
251
+ <tr>
252
+ <td>lg</td>
253
+ <td>32rem</td>
254
+ <td>512px</td>
255
+ <td><code>w-lg</code></td>
256
+ <td class="hidden sm:table-cell">
257
+ <div class="inline-block w-lg h-4 bg-primary-base"></div>
258
+ </td>
259
+ </tr>
260
+ <tr class="sm:hidden">
261
+ <td colspan="4">
262
+ <div class="inline-block w-lg h-4 bg-primary-base" role="img" aria-label="anchura lg"></div>
263
+ </td>
264
+ </tr>
265
+ <tr>
266
+ <td>xl</td>
267
+ <td>36rem</td>
268
+ <td>576px</td>
269
+ <td><code>w-xl</code></td>
270
+ <td class="hidden sm:table-cell">
271
+ <div class="inline-block w-xl h-4 bg-primary-base"></div>
272
+ </td>
273
+ </tr>
274
+ <tr class="sm:hidden">
275
+ <td colspan="4">
276
+ <div class="inline-block w-xl h-4 bg-primary-base" role="img" aria-label="anchura xl"></div>
277
+ </td>
278
+ </tr>
279
+ </tbody>
280
+ </table>
281
+ </div>
162
282
  </div>
163
283
  <div class="pb-xl"></div>
164
284
  {% from "ds/_ds.macro.subsection-title.njk" import DSSubsectionTitle %}
@@ -187,8 +307,17 @@
187
307
  <td><code>max-w-40</code></td>
188
308
  <td class="hidden sm:table-cell">
189
309
  <div class="inline-block max-w-40 overflow-hidden">
190
- <div class="h-4 bg-primary-light text-primary-light">
191
- -----------------------------------------------------------------------------------------------------------------
310
+ <div class="h-4 bg-primary-base text-transparent" role="img" aria-label="anchura 40">
311
+ <span class="sr-only">||||||||||||||||||||||||||||||||||||||||</span>
312
+ </div>
313
+ </div>
314
+ </td>
315
+ </tr>
316
+ <tr class="sm:hidden">
317
+ <td colspan="4">
318
+ <div class="inline-block max-w-40 overflow-hidden">
319
+ <div class="h-4 bg-primary-base text-transparent" role="img" aria-label="anchura 40">
320
+ <span class="sr-only">||||||||||||||||||||||||||||||||||||||||</span>
192
321
  </div>
193
322
  </div>
194
323
  </td>
@@ -200,8 +329,17 @@
200
329
  <td><code>max-w-64</code></td>
201
330
  <td class="hidden sm:table-cell">
202
331
  <div class="inline-block max-w-64 overflow-hidden">
203
- <div class="h-4 bg-primary-light text-primary-light">
204
- -----------------------------------------------------------------------------------------------------------------
332
+ <div class="h-4 bg-primary-base text-transparent">
333
+ <span class="sr-only">||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||</span>
334
+ </div>
335
+ </div>
336
+ </td>
337
+ </tr>
338
+ <tr class="sm:hidden">
339
+ <td colspan="4">
340
+ <div class="inline-block max-w-64 overflow-hidden">
341
+ <div class="h-4 bg-primary-base text-transparent">
342
+ <span class="sr-only">||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||</span>
205
343
  </div>
206
344
  </div>
207
345
  </td>