Footer element don't have role in page.html.twig file. In HTML5 Footer have Aria role="contentinfo", so we can add this to our file.

Comments

Gauravmahlawat created an issue. See original summary.

gauravvvv’s picture

Status: Active » Needs review
StatusFileSize
new585 bytes

I have provided a patch with aria role added to footer element. Please review.

Ref document for Aria roles in HTML5 https://dequeuniversity.com/assets/html/jquery-summit/html5/slides/landm...

admin@azhark.com’s picture

Status: Needs review » Reviewed & tested by the community

The patch looks good to me.

The only thing is, ref link is incorrect.
While inserting link kindly use the Insert/Edit Link button.

Aria Role HTML 5 Ref

larowlan’s picture

Status: Reviewed & tested by the community » Needs review

Are we sure that reference isn't outdated, do screenreaders understand HTML5 now?

abhijith s’s picture

StatusFileSize
new84.89 KB
new52.09 KB

Applied patch #2 and it adds the role in footer. Adding screenshots below.

Before patch:
before

After patch:
after

RTBC +1

chetanbharambe’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new501.91 KB
new502.85 KB

Verified and tested patch #2.
Patch applied successfully and looks good to me.

Testing Steps:
# Goto: Appearance -> Apply Bartik Theme
# Goto Homepage
# Goto Footer Section -> Inspect the element -> check class="site-footer"

Expected Results:
# After applying the patch, role="contentinfo" should appear infront of class="site-footer"

Actual Results:
# Currently, role="contentinfo" is not rendering.

Please refer attached screenshots for the same.
Looks good to me.
Can be a move to RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 2: 3226894-2.patch, failed testing. View results

sagarchauhan’s picture

Status: Needs work » Reviewed & tested by the community
StatusFileSize
new157.26 KB
new176.83 KB

This patch is still working. I have added the screenshot for reference. The tests failed due to random error.

Also here is the Ref document for Aria roles in HTML5: Aria Role HTML5

lauriii’s picture

Status: Reviewed & tested by the community » Needs review

Feedback from #4 hasn't been addressed.

rosk0’s picture

Status: Needs review » Closed (won't fix)
Related issues: +#3226862: Olivero: Add role for footer element

This change is redundant.

See reasoning in #3226862: Olivero: Add role for footer element.

vikashsoni’s picture

StatusFileSize
new31.14 KB
new5.76 KB

Applied patch #2 working fine and applied successfully
Thanks for the patch
for ref sharing screenshot ....

bnjmnm’s picture

@vikashsoni re #11 there's no benefit in adding screenshots to an issue marked Closed (won't fix)