User tests: Successful: Unsuccessful:
As title says.
Load Template styles manager and switch Options => Preview Module Positions on and off.
Same for Templates Manager
Hover the Preview icon
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_templates |
This is not correct. Please test with a screen reader.
If it is no correct, then propose something that works.
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; ?>
Labels |
Added:
?
|
What is the purpose of <span class="visually-hidden"><?php echo Text::_('COM_TEMPLATES_TEMPLATE_PREVIEW'); ?></span>
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.
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.
Title |
|
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
no idea what you mean. Want me to also close that one on a useless comment?
I have tested this item
I have tested this item
@brianteeman
Do you mean that
class="visually-hidden">
should be deleted?
(PS hope you are well - not seen you online for longer than usual)
Labels |
Added:
?
|
@sandramay0905 @RickR2H Could you test this PR again? It has received changes. Thanks in advance.
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"
Open or Preview - both are fine - whichever you prefer is fine by me
Category | Administration com_templates | ⇒ | Administration com_templates Language & Strings |
I have tested this item
Labels |
Added:
?
Removed: ? |
@sandramay0905 @RickR2H Could you test this PR again? Modified some aspects. test specially when no preview in template styles.
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
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:
?
|
Thanks!
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.