Problem/Motivation
The module, which is generally great, makes every question an H3. This can cause accessibility issues when in situations where the page does not have an H1, or where the FAQ is being placed inside an H3, H4, H5 or H6. In most of our uses of FAQ fields, they are the only thing on the page and so fall directly below an H1, but there are occasional times when it is in a different hierarchy location.
Proposed resolution
Allow choosing the tag to use for the question. Ideally this would be a setting on a per field instance basis, second best at a per node/per paragraph basis, third best (and bare minimum) on a sitewide basis.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | Screenshot from 2025-04-30 20-25-00.png | 14.2 KB | oleksandr p. |
Issue fork faqfield-3373259
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
kwfinken commentedComment #3
oleksandr p. commentedComment #4
oleksandr p. commentedComment #8
oleksandr p. commentedI added the basic functionality to handle this issue for all main field formats (see the attached screenshot). I hope these changes cover the main scope of the accessibility questions mentioned.
Comment #10
heddnThanks for the contributions.