We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forms are grouped and displayed as tabs using fieldsets and the pat-autotoc pattern: https://github.com/plone/plone.app.z3cform/blob/master/plone/app/z3cform/templates/macros.pt#L56
fieldset
pat-autotoc
With this approach it is not possible to use fieldsets to group checkbox and radio fields (which makes them more accessible).
Nested fieldsets are possible, but screenreaders have problems distinguishing between the outer inner fieldsets, as Lèonie Watson describes in her article about fieldsets and legends: https://accessibility.blog.gov.uk/2016/07/22/using-the-fieldset-and-legend-elements/. There is also an automated test suite available from Russ Weakley: https://russmaxdesign.github.io/accessible-forms/support-nested-fieldsets.html
Sidenote: the from pat-autotoc generated structure is not accessible. A better and lighter implementation is described in the chapter “Tabbed interfaces” in Haydon Pickering’s book “Inclusive Components” An example is available: https://heydon.github.io/inclusive-components-demos/tab-interface/true-tabbed-interface.html
Instead of using fieldset and legend to create the tabbed representation, a div or section should be used with a corresponding heading:
legend
div
section
<form data-pat-autotoc="levels: .fieldgroup__title; section: div.fieldgroup; className: autotabs"> <!-- ... --> <div class="fieldgroup" id="fieldset-default" tal:omit-tag="not:show_default_label"> <h2 class="fieldgroup__title" tal:condition="show_default_label" tal:attributes="id string:fieldsetlegend-default" tal:content="default_fieldset_label">Form name</h2> <!-- ... --> </div> <!-- ... --> </form>
The text was updated successfully, but these errors were encountered:
thomasmassmann
No branches or pull requests
Forms are grouped and displayed as tabs using
fieldset
s and thepat-autotoc
pattern: https://github.com/plone/plone.app.z3cform/blob/master/plone/app/z3cform/templates/macros.pt#L56With this approach it is not possible to use fieldsets to group checkbox and radio fields (which makes them more accessible).
Nested fieldsets are possible, but screenreaders have problems distinguishing between the outer inner fieldsets, as Lèonie Watson describes in her article about fieldsets and legends: https://accessibility.blog.gov.uk/2016/07/22/using-the-fieldset-and-legend-elements/. There is also an automated test suite available from Russ Weakley: https://russmaxdesign.github.io/accessible-forms/support-nested-fieldsets.html
Sidenote: the from
pat-autotoc
generated structure is not accessible. A better and lighter implementation is described in the chapter “Tabbed interfaces” in Haydon Pickering’s book “Inclusive Components” An example is available: https://heydon.github.io/inclusive-components-demos/tab-interface/true-tabbed-interface.htmlInstead of using
fieldset
andlegend
to create the tabbed representation, adiv
orsection
should be used with a corresponding heading:The text was updated successfully, but these errors were encountered: