Skip to content

Comments

[4.0] tags menu items image alt [a11y]#31359

Merged
rdeutz merged 2 commits intojoomla:4.0-devfrom
brianteeman:tag1
Apr 16, 2021
Merged

[4.0] tags menu items image alt [a11y]#31359
rdeutz merged 2 commits intojoomla:4.0-devfrom
brianteeman:tag1

Conversation

@brianteeman
Copy link
Contributor

Continues the work of #31318 and #31323 by correcting the behaviour of the alt text and changing the strings to match the work done in #31318

This is very slightly different to the other similar PR as before this PR there were no alt text at all not even empty ones

Background

To read why this change is very important see #31318

Testing Part 1

Testing is really easy. No npm, js or css involved.
Merge the pull request and then create one of each of the three types of tag menu items and add an image

List All Tags

image

Tagged Items & Compact Tagged Items

image

Testing Part 2

  1. Image Description (Alt Text) = Empty
    No Description = unchecked

  2. Image Description (Alt Text) = "some description"
    No Description = unchecked

  3. Image Description (Alt Text) = Empty
    No Description = checked

The expected behaviour for each of these tests is

1.<img src="filename.jpg">
2. <img src="filename.jpg" alt="some description">
3. <img src="filename.jpg" alt >
or <img src="filename.jpg" alt="">

PLEASE do not comment on what you think the code does but apply the PR and test it. Getting very tired of people blocking PR with their comments without actually testing the code.

cc @carcam

@Quy Quy added the PR-4.0-dev label Nov 12, 2020
@Quy
Copy link
Contributor

Quy commented Nov 16, 2020

Tested successfully. Listed as a discussion in issue tracker.

@Quy Quy added the a11y Accessibility label Jan 23, 2021
@joomla-cms-bot joomla-cms-bot added the Language Change This is for Translators label Feb 2, 2021
@brianteeman
Copy link
Contributor Author

Conflicts resolved

@brianteeman
Copy link
Contributor Author

Looks like this doesnt appear on the issue tracker. It would be great if those on github could test it and we can get it merged as no one using patchtester will see it

@brianteeman
Copy link
Contributor Author

@Quy @richard67 @chmst It would be great if you could test and merge this - apparently its missing from JIssues so no testers see it

@richard67 richard67 added Conflicting Files a11y Accessibility Language Change This is for Translators and removed Language Change This is for Translators a11y Accessibility Conflicting Files labels Apr 2, 2021
@Quy
Copy link
Contributor

Quy commented Apr 2, 2021

Tested successfully.

@Quy Quy added the JBS label Apr 4, 2021
@chmst
Copy link
Contributor

chmst commented Apr 11, 2021

The PR works when the user sets values correct. But we have 4 cases

alt text       |   decorative only |  Result
--------------------------------------------
not empty |   checked             |   alt text is displayed (is this intended?)
not empty |   not checked       |  alt text is displayed (correkt)
empty       |   checked              |  alt = "" (correct)
empty       |   not checked       |  no alt text at all - as much as i know this is not a11y 

@brianteeman
Copy link
Contributor Author

This is not about making all images have alt text or "".

Its all about making a conscious decision if an image has alt text or if it has "" which is correct for marking it as decorative

Its important that "empty | not checked " exists as thats the equivalent to not making a conscious decision and will now mean that an accessibility audit will identify the image as needs review to be given either an alt text or to be marked as decorative

empty | not checked | no alt text at all - as much as i know this is not a11y

@chmst
Copy link
Contributor

chmst commented Apr 12, 2021

ok, I forgot. Tested successfully.

@richard67 richard67 added Conflicting Files and removed JBS Language Change This is for Translators a11y Accessibility labels Apr 12, 2021
@richard67
Copy link
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Apr 12, 2021
@richard67 richard67 added a11y Accessibility and removed Conflicting Files labels Apr 12, 2021
@richard67 richard67 added JBS Language Change This is for Translators labels Apr 12, 2021
@Quy Quy removed the JBS label Apr 12, 2021
@Quy Quy added this to the Joomla 4.0 milestone Apr 14, 2021
@rdeutz rdeutz merged commit b05c44b into joomla:4.0-dev Apr 16, 2021
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Apr 16, 2021
@brianteeman
Copy link
Contributor Author

Thanks all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a11y Accessibility Language Change This is for Translators

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants