Diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/ui-stats.c | 5 |
1 file changed, 4 insertions, 1 deletion
diff --git a/source/ui-stats.c b/source/ui-stats.c index ee5b76b..c22b027 100644 --- a/source/ui-stats.c +++ b/source/ui-stats.c @@ -311,7 +311,10 @@ static void print_authors(struct string_list *authors, int max_rows, const struc { size_t i, column, rows; - html("<table class='stats'>\n<tr><th scope='col'>Author</th>"); + // The table scrolls sideways on a narrow window, and since nothing in + // it can take focus, the table has to for a keyboard to scroll it. + html("<table class='stats' tabindex='0' aria-label='Commits per author'>\n" + "<tr><th scope='col'>Author</th>"); for (column = 0; column < labels->nr; column++) htmlf("<th scope='col'>%s</th>", labels->items[column].string); html("<th scope='col'>Total</th></tr>\n"); |
