diff options
| author | Patrick H. Lauke <[email protected]> | 2014-11-14 12:37:31 +0000 |
|---|---|---|
| committer | Patrick H. Lauke <[email protected]> | 2014-11-14 13:40:09 +0000 |
| commit | db4e5efb8f1ddf1720f20440bdc1e050f98e78e0 (patch) | |
| tree | a29f80ec44218ff18ce9c71463273abc55af9268 /docs/_includes/css/grid.html | |
| parent | 7bdc307b70caaad69fd88a6a9dd6de6a97e1505c (diff) | |
| download | bootstrap-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/grid.html')
| -rw-r--r-- | docs/_includes/css/grid.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/_includes/css/grid.html b/docs/_includes/css/grid.html index cea5b17ee..3563aa78a 100644 --- a/docs/_includes/css/grid.html +++ b/docs/_includes/css/grid.html @@ -68,49 +68,49 @@ </thead> <tbody> <tr> - <th class="text-nowrap">Grid behavior</th> + <th class="text-nowrap" scope="row">Grid behavior</th> <td>Horizontal at all times</td> <td colspan="3">Collapsed to start, horizontal above breakpoints</td> </tr> <tr> - <th class="text-nowrap">Container width</th> + <th class="text-nowrap" scope="row">Container width</th> <td>None (auto)</td> <td>750px</td> <td>970px</td> <td>1170px</td> </tr> <tr> - <th class="text-nowrap">Class prefix</th> + <th class="text-nowrap" scope="row">Class prefix</th> <td><code>.col-xs-</code></td> <td><code>.col-sm-</code></td> <td><code>.col-md-</code></td> <td><code>.col-lg-</code></td> </tr> <tr> - <th class="text-nowrap"># of columns</th> + <th class="text-nowrap" scope="row"># of columns</th> <td colspan="4">12</td> </tr> <tr> - <th class="text-nowrap">Column width</th> + <th class="text-nowrap" scope="row">Column width</th> <td class="text-muted">Auto</td> <td>~62px</td> <td>~81px</td> <td>~97px</td> </tr> <tr> - <th class="text-nowrap">Gutter width</th> + <th class="text-nowrap" scope="row">Gutter width</th> <td colspan="4">30px (15px on each side of a column)</td> </tr> <tr> - <th class="text-nowrap">Nestable</th> + <th class="text-nowrap" scope="row">Nestable</th> <td colspan="4">Yes</td> </tr> <tr> - <th class="text-nowrap">Offsets</th> + <th class="text-nowrap" scope="row">Offsets</th> <td colspan="4">Yes</td> </tr> <tr> - <th class="text-nowrap">Column ordering</th> + <th class="text-nowrap" scope="row">Column ordering</th> <td colspan="4">Yes</td> </tr> </tbody> |
