Pending

User tests: Successful: Unsuccessful:

avatar LivioCavallo
LivioCavallo
22 Aug 2017

Summary of Changes

In J! 3.7.5 Article Index Heading can be shown by Pagebreak plugin at top of article T.O.C.; it's in a <h3> element.
To avoid an accessibility error (<h3> follows <h1>) in some circumstancies (when article title <h2> is hidden and page header <h1> is shown), let's put Article Index Heading in <strong> instead of <h3>.

Testing Instructions

Create and publish an article; create a menuitem to that single article.
Set Menuitem 'Page Display' settings to 'Show Page Heading' and Options to hide Title.

Expected result

The page is accessible (https://achecker.ca/checker/index.php)

Actual result

The page is not accessible: Header nesting - header following <h1> is incorrect (Modify the header levels so only an <h1> or <h2> follows <h1>).

Notes

Usual headings flow is relative to the article; article index are "aside" informations, "nav"igation informations that are related to article but not constitute article's structure.
Changing <h3> to <strong> should not be a big impact here.

avatar joomla-cms-bot joomla-cms-bot - change - 22 Aug 2017
Category Front End Plugins
avatar LivioCavallo LivioCavallo - open - 22 Aug 2017
avatar LivioCavallo LivioCavallo - change - 22 Aug 2017
Status New Pending
avatar brianteeman
brianteeman - comment - 22 Aug 2017

I am not in favour of this PR as it will change the output of a users site and they have no easy way to see how to change it. I am not convinced it is a genuine a11y error and it is something that a siteowner should change if they so desire.

There are so many places we can improve the a11y that do not effect the template we should concentrate on them eg in the admin

avatar LivioCavallo
LivioCavallo - comment - 23 Aug 2017

Three a11y validators I use detect this as an error; I think it's a genuine accessibility error.
Surely there are other pieces of code in J! to improve a11y but I never had to make the backend a11y validable; on the contrary I had to make J! frontend validable some times, so now I share some of my little fixes, if it can be useful.

avatar LivioCavallo
LivioCavallo - comment - 23 Aug 2017

An alternative would be to emit the Page_Title <h2> anyway, eventually hidden (just as I suggested in PR #17686), so to grant this sequence: Page_header <h1> -> (eventually hidden) Page_Title <h2> -> eventually followed by Article Index <h3> .

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Nov 2017

@brianteeman is the Suggestion above a Solution?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17670.

avatar brianteeman
brianteeman - comment - 1 Nov 2017

No not really.

avatar LivioCavallo
LivioCavallo - comment - 1 Nov 2017

The problem is: such a page does not validate.
I propose two ways to SOLVE it:

  • This PR solves the problem: the page validates.
  • The Suggestion above (#17670 (comment) : "... to emit the Page_Title <h2> anyway, eventually hidden (just as I suggested in PR #17686), so to grant this sequence: Page_header <h1> -> (eventually hidden) Page_Title <h2> -> eventually followed by Article Index <h3>...") solves the problem: the page validates.

Please, comment on which one is better or why they are not acceptable solutions (the fact that there are many other problems is not an argument, in my humble opinion).

avatar brianteeman
brianteeman - comment - 1 Nov 2017

I am not in favour of this PR as it will change the output of a users site and they have no easy way to see how to change it

I dont think this can ever be "fixed" in the core as it is very site configuration specific

avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Nov 2017
Status Pending Needs Review
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Nov 2017

Status is set on "Needs Review".

avatar brianteeman
brianteeman - comment - 14 Apr 2018

PS I have been educated now that it is an a11y issue. I still have concerns about changing it as we are also effecting the display of a users web site

avatar ReLater
ReLater - comment - 19 Apr 2018

Maybe you like this pr that uses override possibilllity of plugins:
#20202

avatar ReLater
ReLater - comment - 25 Apr 2018

@LivioCavallo
We just need one more test for pr #20202 .
If it gets merged users and template creators have the possibility to use any HTML tag they want in a template override for the article TOC or use conditions or.... And it's B\C.

avatar Quy
Quy - comment - 26 Apr 2018

Please close per Brian's comment/concern.

avatar joomla-cms-bot joomla-cms-bot - change - 26 Apr 2018
Closed_Date 2018-04-26 15:59:16 2018-04-26 15:59:17
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 26 Apr 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 26 Apr 2018
Status Needs Review Closed
Closed_Date 0000-00-00 00:00:00 2018-04-26 15:59:16
Closed_By franz-wohlkoenig
avatar joomla-cms-bot
joomla-cms-bot - comment - 26 Apr 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Apr 2018

closed as stated above.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17670.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Apr 2018

closed as stated above.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17670.

Add a Comment

Login with GitHub to post a comment