mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 21:00:10 +01:00
add scope=col or row to appendix table
as recommended by https://www.w3.org/WAI/tutorials/tables/two-headers/ http://webaim.org/techniques/tables/data
This commit is contained in:
parent
c8ff52d9e8
commit
c9dbe70f03
@ -10,7 +10,7 @@ All licenses described in the choosealicense.com [repository](https://github.com
|
|||||||
<table border style="font-size: xx-small">
|
<table border style="font-size: xx-small">
|
||||||
{% assign types = "permissions|conditions|limitations" | split: "|" %}
|
{% assign types = "permissions|conditions|limitations" | split: "|" %}
|
||||||
<tr>
|
<tr>
|
||||||
<th>License</th>
|
<th scope="col" style="text-align: center">License</th>
|
||||||
{% assign seen_tags = '' %}
|
{% assign seen_tags = '' %}
|
||||||
{% for type in types %}
|
{% for type in types %}
|
||||||
{% assign rules = site.data.rules[type] | sort: "label" %}
|
{% assign rules = site.data.rules[type] | sort: "label" %}
|
||||||
@ -19,12 +19,12 @@ All licenses described in the choosealicense.com [repository](https://github.com
|
|||||||
{% continue %}
|
{% continue %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% capture seen_tags %}{{ seen_tags | append:rule_obj.tag }}{% endcapture %}
|
{% capture seen_tags %}{{ seen_tags | append:rule_obj.tag }}{% endcapture %}
|
||||||
<th style="text-align: center; width:7%"><a href="#{{ rule_obj.tag }}">{{ rule_obj.label }}</a></th>
|
<th scope="col" style="text-align: center; width:7%"><a href="#{{ rule_obj.tag }}">{{ rule_obj.label }}</a></th>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tr>
|
</tr>
|
||||||
{% for license in site.licenses | sort: 'path' %}
|
{% for license in site.licenses | sort: 'path' %}
|
||||||
<tr style="height: 3em"><td><a href="{{ license.id }}">{{ license.title }}</a></td>
|
<tr style="height: 3em"><th scope="row"><a href="{{ license.id }}">{{ license.title }}</a></th>
|
||||||
{% assign seen_tags = '' %}
|
{% assign seen_tags = '' %}
|
||||||
{% for type in types %}
|
{% for type in types %}
|
||||||
{% assign rules = site.data.rules[type] | sort: "label" %}
|
{% assign rules = site.data.rules[type] | sort: "label" %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user