Skip to content
This repository has been archived by the owner on Apr 18, 2018. It is now read-only.

Commit

Permalink
Merge pull request #129 from AusDTO/bugfix/tables-section-guidance-do…
Browse files Browse the repository at this point in the history
…uble-up

Bugfix/tables section guidance double up
  • Loading branch information
dominikwilkowski authored Jan 16, 2017
2 parents 23b8dfd + 4ad5cb2 commit 5a008c7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
1 change: 0 additions & 1 deletion _components/badges/badges-top.md

This file was deleted.

4 changes: 2 additions & 2 deletions _components/badges/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ title: Badges
section: Typography
sections:
- headline: Badges
- md: Badges top
- code:
- scss: assets/sass/components/_typography
- markup: Badges
---

<p class="abstract">Use badges to show the status of a service.<p>
Use badges to show the status of a service.
{: .abstract }
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{% assign ID = "tables" %}

{% capture content %}
- Tables should be used for data, never design.
- Consider more accessible ways to format content before using a table, such as lists.
- Avoid tables with multiple header levels and spanned cells.
- Use `thead`, `tbody` and `tfoot` to improve how browsers display tables. They don't make tables more accessible.
- Title tables using the <a href="https://www.w3.org/wiki/HTML/Elements/caption" rel="external">`<caption>` element</a> inside the `<table>` element.
- Row and column headers should be set with the <a href="https://www.w3.org/TR/html401/struct/tables.html#adef-scope" rel="external">`scope` attribute</a>.
- <a href="https://www.w3.org/WAI/tutorials/tables/" rel="external">W3C has guidance on making tables</a>.
{% endcapture %}

{% include guidance.liquid content = content ID = ID %}
9 changes: 3 additions & 6 deletions _components/tables/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,12 @@ layout: collections/item
title: Tables
section: Tables
sections:
- md: Basic table top
- headline: Tables
- code:
- scss: assets/sass/components/_tables
- markup: table-examples
- md: Basic table guidance

- headline: Building tables
- md: Building top
- md: Building guidance
---

<p class="abstract">Use tables to make data content easier to scan.<p>
Use tables to make data content easier to scan.
{: .abstract }

0 comments on commit 5a008c7

Please sign in to comment.