? ? ? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
25 Apr 2021

Summary of Changes

As title says.

Testing Instructions

Load Template styles manager and switch Options => Preview Module Positions on and off.
Same for Templates Manager

Hover the Preview icon

Actual result BEFORE applying this Pull Request

Screen Shot 2021-04-25 at 08 49 11

Screen Shot 2021-04-25 at 08 50 34

Screen Shot 2021-04-25 at 08 51 43

Expected result AFTER applying this Pull Request

Screen Shot 2021-04-25 at 08 53 26

Screen Shot 2021-04-25 at 09 06 41

Screen Shot 2021-04-25 at 08 53 58

Documentation Changes Required

avatar infograf768 infograf768 - open - 25 Apr 2021
avatar infograf768 infograf768 - change - 25 Apr 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 Apr 2021
Category Administration com_templates
avatar sandramay0905 sandramay0905 - test_item - 25 Apr 2021 - Tested successfully
avatar sandramay0905
sandramay0905 - comment - 25 Apr 2021

I have tested this item successfully on 352b4c3


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

avatar brianteeman
brianteeman - comment - 25 Apr 2021

This is not correct. Please test with a screen reader.

avatar infograf768
infograf768 - comment - 26 Apr 2021
  1. I have no screenreader except Mac VoiceOver.
    Not sure what would be the correct preferences but using default I tested it on Firefox. It does not read the title either.
  2. We have other occurrences in admin with similar code and VoiceOver does not read the tips either.

If it is no correct, then propose something that works.

avatar infograf768
infograf768 - comment - 26 Apr 2021

Explaining more.
When we have a link I can add an aria-labelledby and it looks like working

<a href="<?php echo Route::link($client, 'index.php?tp=1&templateStyle=' . (int) $item->id); ?>" target="_blank" class="jgrid" aria-labelledby="preview-<?php echo (int) $item->id; ?>">
											<span class="visually-hidden"><?php echo Text::_('COM_TEMPLATES_TEMPLATE_PREVIEW'); ?></span>
										</a>
										<div role="tooltip" id="preview-<?php echo (int) $item->id; ?>"><?php echo Text::sprintf('JBROWSERTARGET_NEW_TITLE', $item->title); ?></div>

But I have no idea how to do when we have no link. I.e. when no preview.

<?php else : ?>
										<span class="icon-eye-slash" aria-hidden="true"></span>
										<div role="tooltip" id="nopreview-<?php echo (int) $item->id; ?>"><?php echo Text::_('COM_TEMPLATES_TEMPLATE_NO_PREVIEW'); ?></div>
										<span class="visually-hidden"><?php echo Text::_('COM_TEMPLATES_TEMPLATE_NO_PREVIEW'); ?></span>
									<?php endif; ?>
avatar infograf768 infograf768 - change - 26 Apr 2021
Labels Added: ?
avatar brianteeman
brianteeman - comment - 26 Apr 2021

What is the purpose of <span class="visually-hidden"><?php echo Text::_('COM_TEMPLATES_TEMPLATE_PREVIEW'); ?></span>

avatar infograf768
infograf768 - comment - 26 Apr 2021

What is the purpose of <span class="visually-hidden"><?php echo Text::_('COM_TEMPLATES_TEMPLATE_PREVIEW'); ?></span>

I did not touch that, It was there before as you can see in the diff.

avatar infograf768
infograf768 - comment - 26 Apr 2021

So normally, the PR is now OK by adding aria-labelledby.

anything else can be modified if necessary in another PR.

Now preparing another PR to use aria-labelledby for associations badges.

avatar infograf768 infograf768 - change - 26 Apr 2021
Title
[4.0] Changing title to tooltip fpr template preview
[4.0] Changing title to tooltip for template preview
avatar infograf768 infograf768 - edited - 26 Apr 2021
avatar brianteeman
brianteeman - comment - 26 Apr 2021

I did not touch that, It was there before as you can see in the diff.

Maybe not but your changes have an impact on the existing code

avatar infograf768
infograf768 - comment - 26 Apr 2021

no idea what you mean. Want me to also close that one on a useless comment?

avatar brianteeman
brianteeman - comment - 26 Apr 2021

OK let me try again with a picture after applying the PR

image

So the point is that you should have touched that line as it is now redundant

avatar RickR2H RickR2H - test_item - 3 May 2021 - Tested successfully
avatar RickR2H
RickR2H - comment - 3 May 2021

I have tested this item successfully on edf8bbf


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

avatar sandramay0905 sandramay0905 - test_item - 4 May 2021 - Tested successfully
avatar sandramay0905
sandramay0905 - comment - 4 May 2021

I have tested this item successfully on edf8bbf


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

avatar infograf768
infograf768 - comment - 11 May 2021

@brianteeman
Do you mean that
class="visually-hidden"> should be deleted?

avatar brianteeman
brianteeman - comment - 11 May 2021

No I mean that the entire line should be deleted as there is no need to have it twice

image

(ignore the highlight in the image)

avatar brianteeman
brianteeman - comment - 11 May 2021

(PS hope you are well - not seen you online for longer than usual)

avatar infograf768 infograf768 - change - 12 May 2021
Labels Added: ?
avatar richard67
richard67 - comment - 12 May 2021

@sandramay0905 @RickR2H Could you test this PR again? It has received changes. Thanks in advance.

avatar infograf768
infograf768 - comment - 12 May 2021

Deleted redundant span.

Afterthought:
Using JBROWSERTARGET_NEW_TITLE="Open %s in new window" may be not specific enough.

What do you think about using a new string:
COM_TEMPLATES_TEMPLATE_NEW_PREVIEW="Preview %s in new window"

avatar brianteeman
brianteeman - comment - 12 May 2021

Open or Preview - both are fine - whichever you prefer is fine by me

avatar joomla-cms-bot joomla-cms-bot - change - 12 May 2021
Category Administration com_templates Administration com_templates Language & Strings
avatar infograf768
infograf768 - comment - 12 May 2021

Used new string

Screen Shot 2021-05-12 at 10 34 06

Screen Shot 2021-05-12 at 10 33 44

can be tested now

avatar sandramay0905 sandramay0905 - test_item - 12 May 2021 - Tested successfully
avatar sandramay0905
sandramay0905 - comment - 12 May 2021

I have tested this item successfully on 5442371


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

avatar infograf768 infograf768 - change - 13 May 2021
Labels Added: ?
Removed: ?
avatar infograf768
infograf768 - comment - 13 May 2021

Thanks @Quy
I added the labelledby directly in the span. I guess that would be OK as it also takes care of the cursor.

tip

avatar infograf768
infograf768 - comment - 13 May 2021

@sandramay0905 @RickR2H Could you test this PR again? Modified some aspects. test specially when no preview in template styles.

avatar sandramay0905 sandramay0905 - test_item - 13 May 2021 - Tested successfully
avatar sandramay0905
sandramay0905 - comment - 13 May 2021

I have tested this item successfully on b57d245


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

avatar infograf768 infograf768 - alter_testresult - 14 May 2021 - sandramay0905: Tested successfully
avatar sandramay0905
sandramay0905 - comment - 14 May 2021

@RickR2H can you please retest?

avatar Quy Quy - test_item - 27 May 2021 - Tested successfully
avatar Quy
Quy - comment - 27 May 2021

I have tested this item successfully on 490cfb0


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

avatar Quy Quy - change - 27 May 2021
Status Pending Ready to Commit
avatar Quy
Quy - comment - 27 May 2021

RTC


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

avatar chmst chmst - change - 29 May 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-05-29 07:06:59
Closed_By chmst
Labels Added: ?
avatar chmst chmst - close - 29 May 2021
avatar chmst chmst - merge - 29 May 2021
avatar chmst
chmst - comment - 29 May 2021

Thanks!

Add a Comment

Login with GitHub to post a comment