Closed JEThompson97 closed 3 years ago
This issue has been held up by some cases which need further thought.
Panda and I discussed these cases on 26/05/21 and decided the following next steps:
It should also be noted that while heading level structure is important, the impact this has is how clear and easy to navigate the information is, rather than whether the information can be accessed or not.
While we should aim for our heading levels are as well structured as possible, there may be some instances where a complete, solution may not be feasible due to the nature of how the code is structured.
This approach is supported by the official guidance, as it describes heading levels as a 'where possible' rather than 'absolutely necessary' criteria:
Skipping heading ranks can be confusing and should be avoided where possible Source: w3.org
I have a local branch to fix all the 'non-tricky' heading levels, and improve the trickier ones (mentioned above).
I'm holding off on pushing this as a PR until I get back from leave so I have time to merge with develop, resolve issues, and respond to PR reviews.
Part of #68
Many of the app's pages contain skipped heading levels.
Note: the below are not up-to-date/exhaustive lists. But they give an idea of the issue.
User role
h1
>p
("HOMEPAGE") >h6
("My proposals")h1
>h4
("New Proposal")h1
>h4
("Shipments")h1
>p
("HELPPAGE")h1
>h6
("Select a call") > for each call {h6
(Call name) }User Officer role
h1
>h6
("Proposals")h1
>h6
("Calls")CREATE
> h6 ("Create new call")h1
>h6
("Users")h1
>h1
("Invite User")h1
>h1
("Invite Reviewer")h1
>h6
("Instruments")CREATE
> h6 ("Create new instrument")h1
>h6
("Scientific evaluation panels")h1
>h6
("Set x homepage")h1
>h6
("Institutions")CREATE
> h6 ("Create new institution")h1
>h6
("Templates")CREATE
> h6 ("Create new template")h1
>h6
("Templates")CREATE
> h6 ("Create new template")h1
>h6
("Templates")CREATE
> h6 ("Create new template")h1
>h6
("Questions")h1
>h6
("Samples")h1
>h6
("Units")CREATE
> h6 ("Create new unit")h1
>h6
("Proposal statuses")CREATE
> h6 ("Create new proposal status")h1
>h6
("Proposal workflows")CREATE
> h6 ("Create new proposal workflow")h1
>h6
("API Access Tokens")CREATE
> h6 ("Create new api access token")h1
h4
(data type) >h6
("Constraints")Summary of above
Most (up to API Access Token in table above) heading levels for User Officer pages seem to fall into the following categories:
h1
>h6
h1
>h6
-CREATE
button->h6
h1
>h1
Other
The Privacy Page and Help Page are currently modals. The 'title' for these is are
<p>
element (which appear to be placeholders). When these are created properly, they should use a sequential heading elementNote: I think some of the modals use the same 'components' but require different heading levels between them
These heading levels should be restructured such that in all cases they cascade as
h1
>h2
>h3
> etc./overwrite opened 2020-09-04