Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/259.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the w3c validation error in the common.py by removing the role-attribute from the label [wkbkhard]
2 changes: 1 addition & 1 deletion plone/app/layout/viewlets/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class GlobalSectionsViewlet(ViewletBase):

_opener_markup_template = (
u'<input id="navitem-{uid}" type="checkbox" class="opener" />'
u'<label for="navitem-{uid}" role="button" aria-label="{title}"></label>' # noqa: E 501
u'<label for="navitem-{uid}" aria-label="{title}"></label>' # noqa: E 501

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The trailing # noqa: E 501 can be removed given the line is shorter than 80 chars now.

)
_item_markup_template = (
u'<li class="{id}{has_sub_class} nav-item">'
Expand Down