aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes/css/tables.html
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2014-11-14 12:37:31 +0000
committerPatrick H. Lauke <[email protected]>2014-11-14 13:40:09 +0000
commitdb4e5efb8f1ddf1720f20440bdc1e050f98e78e0 (patch)
treea29f80ec44218ff18ce9c71463273abc55af9268 /docs/_includes/css/tables.html
parent7bdc307b70caaad69fd88a6a9dd6de6a97e1505c (diff)
downloadbootstrap-db4e5efb8f1ddf1720f20440bdc1e050f98e78e0.tar.xz
bootstrap-db4e5efb8f1ddf1720f20440bdc1e050f98e78e0.zip
Fixes to scope
as discssued in https://github.com/twbs/bootstrap/issues/15117#issuecomment-63029993 - added ``scope="row"`` to row headers - made sure row headers are actual ``<th>`` elements - removed ``scope="col"`` where it was redundant - simplified table examples with (to me) unnecessary ``rowspan``/``colspan`` (unless you really want complex tables, in which case we would need full-on ``id`` and ``headers`` attributes to make sure each table cell has an explicit association with the related header cells - overkill, in my opinion) - one table (in typography) left header-less, as it's more or less presentational (though its structure is still important, hence not adding ``role="presentation"``)
Diffstat (limited to 'docs/_includes/css/tables.html')
-rw-r--r--docs/_includes/css/tables.html91
1 files changed, 44 insertions, 47 deletions
diff --git a/docs/_includes/css/tables.html b/docs/_includes/css/tables.html
index aba4a3af8..cf70b651a 100644
--- a/docs/_includes/css/tables.html
+++ b/docs/_includes/css/tables.html
@@ -16,19 +16,19 @@
</thead>
<tbody>
<tr>
- <td>1</td>
+ <th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
- <td>2</td>
+ <th scope="row">2</th>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
- <td>3</td>
+ <th scope="row">3</th>
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
@@ -61,19 +61,19 @@
</thead>
<tbody>
<tr>
- <td>1</td>
+ <th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
- <td>2</td>
+ <th scope="row">2</th>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
- <td>3</td>
+ <th scope="row">3</th>
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
@@ -102,25 +102,21 @@
</thead>
<tbody>
<tr>
- <td rowspan="2">1</td>
+ <th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
- <td>Mark</td>
- <td>Otto</td>
- <td>@TwBootstrap</td>
- </tr>
- <tr>
- <td>2</td>
+ <th scope="row">2</th>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
- <td>3</td>
- <td colspan="2">Larry the Bird</td>
+ <th scope="row">3</th>
+ <td>Larry</td>
+ <td>the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
@@ -147,20 +143,21 @@
</thead>
<tbody>
<tr>
- <td>1</td>
+ <th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
- <td>2</td>
+ <th scope="row">2</th>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
- <td>3</td>
- <td colspan="2">Larry the Bird</td>
+ <th scope="row">3</th>
+ <td>Larry</td>
+ <td>the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
@@ -187,19 +184,19 @@
</thead>
<tbody>
<tr>
- <td>1</td>
+ <th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
- <td>2</td>
+ <th scope="row">2</th>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
- <td>3</td>
+ <th scope="row">3</th>
<td colspan="2">Larry the Bird</td>
<td>@twitter</td>
</tr>
@@ -229,33 +226,33 @@
</thead>
<tbody>
<tr>
- <td>
+ <th scope="row">
<code>.active</code>
- </td>
+ </th>
<td>Applies the hover color to a particular row or cell</td>
</tr>
<tr>
- <td>
+ <th scope="row">
<code>.success</code>
- </td>
+ </th>
<td>Indicates a successful or positive action</td>
</tr>
<tr>
- <td>
+ <th scope="row">
<code>.info</code>
- </td>
+ </th>
<td>Indicates a neutral informative change or action</td>
</tr>
<tr>
- <td>
+ <th scope="row">
<code>.warning</code>
- </td>
+ </th>
<td>Indicates a warning that might need attention</td>
</tr>
<tr>
- <td>
+ <th scope="row">
<code>.danger</code>
- </td>
+ </th>
<td>Indicates a dangerous or potentially negative action</td>
</tr>
</tbody>
@@ -273,55 +270,55 @@
</thead>
<tbody>
<tr class="active">
- <td>1</td>
+ <th scope="row">1</th>
<td>Column content</td>
<td>Column content</td>
<td>Column content</td>
</tr>
<tr>
- <td>2</td>
+ <th scope="row">2</th>
<td>Column content</td>
<td>Column content</td>
<td>Column content</td>
</tr>
<tr class="success">
- <td>3</td>
+ <th scope="row">3</th>
<td>Column content</td>
<td>Column content</td>
<td>Column content</td>
</tr>
<tr>
- <td>4</td>
+ <th scope="row">4</th>
<td>Column content</td>
<td>Column content</td>
<td>Column content</td>
</tr>
<tr class="info">
- <td>5</td>
+ <th scope="row">5</th>
<td>Column content</td>
<td>Column content</td>
<td>Column content</td>
</tr>
<tr>
- <td>6</td>
+ <th scope="row">6</th>
<td>Column content</td>
<td>Column content</td>
<td>Column content</td>
</tr>
<tr class="warning">
- <td>7</td>
+ <th scope="row">7</th>
<td>Column content</td>
<td>Column content</td>
<td>Column content</td>
</tr>
<tr>
- <td>8</td>
+ <th scope="row">8</th>
<td>Column content</td>
<td>Column content</td>
<td>Column content</td>
</tr>
<tr class="danger">
- <td>9</td>
+ <th scope="row">9</th>
<td>Column content</td>
<td>Column content</td>
<td>Column content</td>
@@ -381,7 +378,7 @@
</thead>
<tbody>
<tr>
- <td>1</td>
+ <th scope="row">1</th>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
@@ -390,7 +387,7 @@
<td>Table cell</td>
</tr>
<tr>
- <td>2</td>
+ <th scope="row">2</th>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
@@ -399,7 +396,7 @@
<td>Table cell</td>
</tr>
<tr>
- <td>3</td>
+ <th scope="row">3</th>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
@@ -426,7 +423,7 @@
</thead>
<tbody>
<tr>
- <td>1</td>
+ <th scope="row">1</th>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
@@ -435,7 +432,7 @@
<td>Table cell</td>
</tr>
<tr>
- <td>2</td>
+ <th scope="row">2</th>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
@@ -444,7 +441,7 @@
<td>Table cell</td>
</tr>
<tr>
- <td>3</td>
+ <th scope="row">3</th>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>