Skip to content

Commit

Permalink
a11y: added role attr for portalMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
nzambello committed Dec 24, 2018
1 parent 56d567a commit c9a9d3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ New features:

Bug fixes:

- *add item here*
- a11y: added role attribute for portalMessage
[nzambello]


3.0.8 (2018-11-29)
Expand Down
4 changes: 2 additions & 2 deletions plone/app/z3cform/templates/macros.pt
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

<tal:status define="status view/status;
has_error python:view.widgets.errors or status == getattr(view, 'formErrorsMessage', None)" condition="status">
<dl class="portalMessage error" tal:condition="has_error">
<dl class="portalMessage error" tal:condition="has_error" role="alert">
<dt i18n:translate="">
Error
</dt>
<dd tal:content="status" />
</dl>
<dl class="portalMessage info" tal:condition="not:has_error">
<dl class="portalMessage info" tal:condition="not:has_error" role="status">
<dt i18n:translate="">
Info
</dt>
Expand Down

0 comments on commit c9a9d3f

Please sign in to comment.