? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
8 Nov 2020

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 the alt text for the login image was hardcoded and the alt text for the logout page was an untranslated string. In addition the login and logout sections of the options have now been correctly placed into their own fieldsets

chrome_2020-11-07_23-57-08

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 a Login form menu item and add an image for the login and logout

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

avatar brianteeman brianteeman - open - 8 Nov 2020
avatar brianteeman brianteeman - change - 8 Nov 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Nov 2020
Category Administration Language & Strings Front End com_users
avatar brianteeman brianteeman - change - 8 Nov 2020
The description was changed
avatar brianteeman brianteeman - edited - 8 Nov 2020
avatar carcam
carcam - comment - 8 Nov 2020

@brianteeman I think this image is most of the time decorative, what do you think about making checkbox checked by default?

avatar ceford
ceford - comment - 8 Nov 2020

I am seeing a problem: in scenario 3, with Image Description empty and No Description checked, I get alt="2" for both login and logout image.

<img src="/joomla-cms-4/images/sampledata/parks/landscape/180px_ormiston_pound.jpg" class="com-users-logout__image thumbnail float-right logout-image" alt="2">


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

avatar brianteeman
brianteeman - comment - 8 Nov 2020

@carcam It is impossible to guess that the image is usually decorative and anyway it is better if we are consistent across joomla

@ceford good spot I will look at that

avatar carcam
carcam - comment - 9 Nov 2020

@brianteeman you are right. Consistancy is key for a better usability. Thanks!!!

avatar vaibhavsTekdi vaibhavsTekdi - test_item - 5 Dec 2020 - Tested unsuccessfully
avatar vaibhavsTekdi
vaibhavsTekdi - comment - 5 Dec 2020

I have tested this item 🔴 unsuccessfully on dad9c4d

What I found is,

  • It gets failed at 3rd scenario i.e.

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

it gives the result having an only src tag for the image & not the alt or alt=""
it gives the result having an only src tag for the image & not the alt or alt=""


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31360.
avatar punambaravkar punambaravkar - test_item - 5 Dec 2020 - Tested unsuccessfully
avatar punambaravkar
punambaravkar - comment - 5 Dec 2020

I have tested this item 🔴 unsuccessfully on dad9c4d

I found problem: in scenario 3, with Image Description empty and No Description checked, I get result having an only src tag for the image & not the alt or alt=""


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

avatar brianteeman brianteeman - change - 14 Dec 2020
Labels Added: Conflicting Files ? ?
b3c7957 14 Dec 2020 avatar brianteeman fix
avatar brianteeman
brianteeman - comment - 14 Dec 2020

I have fixed the conflicts and the reported bug. Please retest

avatar bonzani
bonzani - comment - 21 Dec 2020

I have tested this item ✅ successfully on b3c7957


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

avatar bonzani bonzani - test_item - 21 Dec 2020 - Tested successfully
avatar gostn
gostn - comment - 22 Dec 2020

I have tested this item ✅ successfully on b3c7957


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

avatar gostn gostn - test_item - 22 Dec 2020 - Tested successfully
avatar HLeithner HLeithner - change - 22 Dec 2020
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-12-22 08:27:43
Closed_By HLeithner
Labels Removed: Conflicting Files
avatar HLeithner HLeithner - close - 22 Dec 2020
avatar HLeithner HLeithner - merge - 22 Dec 2020
avatar HLeithner
HLeithner - comment - 22 Dec 2020

Thanks

avatar brianteeman
brianteeman - comment - 22 Dec 2020

Thanks

Add a Comment

Login with GitHub to post a comment