Skip to content

Commit

Permalink
add aria labels
Browse files Browse the repository at this point in the history
  • Loading branch information
agitator committed Feb 5, 2019
1 parent 79df2ef commit 896ed50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plone/app/layout/navigation/navtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,9 @@ def build_tree(self, path, first_run=True):
for it in self.navtree.get(path, []):
sub = self.build_tree(path + '/' + it['id'], first_run=False)
opener = u"""<input id="navitem-{uid}" type="checkbox" class="opener">
</input><label for="navitem-{uid}"></label>""".format(
uid=it['uid']
</input><label for="navitem-{uid}" role="button" aria-label="{title}"></label>""".format(
uid=it['uid'],
title=it['title']
) if sub else ''
out += u'<li class="{id}{has_sub_class}">'.format(
id=normalizer.normalize(it['id']),
Expand Down

0 comments on commit 896ed50

Please sign in to comment.