Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Name the graph and links header cells
Both were empty, so a screen reader moving through the table announced
those columns with no name. An aria-label names them without adding
text to the page.
Diffstat (limited to 'source')
| -rw-r--r-- | source/ui-log.c | 2 | |
| -rw-r--r-- | source/ui-tree.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/ui-log.c b/source/ui-log.c index a01ef4e..870ff06 100644 --- a/source/ui-log.c +++ b/source/ui-log.c @@ -585,7 +585,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern html("<tbody class='log'>\n<tr class='nohover'>"); if (commit_graph) - html("<th></th>"); + html("<th scope='col' aria-label='Graph'></th>"); else html("<th class='left' scope='col'>Age</th>"); html("<th class='left' scope='col'>Commit message"); diff --git a/source/ui-tree.c b/source/ui-tree.c index 1d8bb3d..69c0763 100644 --- a/source/ui-tree.c +++ b/source/ui-tree.c @@ -425,7 +425,7 @@ static void ls_head(void) html("<th class='left ls-mode' scope='col'>Mode</th>"); html("<th class='left' scope='col'>Name</th>"); html("<th class='right' scope='col'>Size</th>"); - html("<th class='ls-links'></th>"); + html("<th class='ls-links' scope='col' aria-label='Links'></th>"); html("</tr>\n"); } |
