Add a caption to headings table in budgets admin
Captions benefit blind screen reader users who navigate through tables, particularly in this case because we potentially have several tables with headings (one table per group), so when navigating through tables it might be hard to know which group the headings belong to. In this case they also benefit sighted users. Usability tests have shown the "Groups and headings" section is a bit confusing, so adding a caption like "Headings in Districts" helps clarifying Districts is a group and the table refers to headings in that group. The very same table is rendered in the "headings" step of the budget creation wizard. However, in that case the information of the caption is redundant because the page is specific for headings belonging to a certain group. We're making the element invisible but still keeping it for screen reader users in order to ease their navigation through tables.
This commit is contained in:
@@ -179,7 +179,10 @@ $table-header: #ecf1f6;
|
||||
table {
|
||||
|
||||
caption {
|
||||
@include element-invisible;
|
||||
font-style: italic;
|
||||
font-weight: normal;
|
||||
padding: 0;
|
||||
text-align: $global-left;
|
||||
}
|
||||
|
||||
thead {
|
||||
|
||||
Reference in New Issue
Block a user