Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[a11y] com_ templates #15061

Merged
merged 6 commits into from
May 22, 2017
Merged

[a11y] com_ templates #15061

merged 6 commits into from
May 22, 2017

Conversation

brianteeman
Copy link
Contributor

@brianteeman brianteeman commented Apr 2, 2017

Continuing the work to prevent assistive technology reading out the value of an icon. This PR addresses the icons in com_templates as show in the screenshots below.

screenshotr20-43-20

screenshotr20-45-31

screenshotr20-48-19

@@ -78,11 +78,11 @@
<td>
<?php if ($this->preview && $item->client_id == '0') : ?>
<a target="_blank" href="<?php echo JUri::root() . 'index.php?tp=1&templateStyle=' . (int) $item->id ?>" class="jgrid">
<span class="icon-eye-open hasTooltip" title="<?php echo JHtml::_('tooltipText', JText::_('COM_TEMPLATES_TEMPLATE_PREVIEW'), $item->title, 0); ?>" ></span></a>
<span class="icon-eye-open hasTooltip" aria-hidden="true" title="<?php echo JHtml::_('tooltipText', JText::_('COM_TEMPLATES_TEMPLATE_PREVIEW'), $item->title, 0); ?>" ></span></a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove space before ></span>. Repeat for the other 2 changes.

@@ -78,11 +78,11 @@
<td>
<?php if ($this->preview && $item->client_id == '0') : ?>
<a target="_blank" href="<?php echo JUri::root() . 'index.php?tp=1&templateStyle=' . (int) $item->id ?>" class="jgrid">
<span class="icon-eye-open hasTooltip" title="<?php echo JHtml::_('tooltipText', JText::_('COM_TEMPLATES_TEMPLATE_PREVIEW'), $item->title, 0); ?>" ></span></a>
<span class="icon-eye-open hasTooltip" aria-hidden="true" title="<?php echo JHtml::_('tooltipText', JText::_('COM_TEMPLATES_TEMPLATE_PREVIEW'), $item->title, 0); ?>"></span></a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given this one is a link do we want to provide something for the screenreader as alt text?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about it but then decided against it when I thought about what the link does - but I was wrong as I thought the link opened the preview image and not the entire site with the module positions. I will update it now. Good spot

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@RonakParmar
Copy link

I have tested this item ✅ successfully on 9cb2030

Done code review


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

@yasirunilan
Copy link
Contributor

How to test this PR?


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

@Quy
Copy link
Contributor

Quy commented Apr 19, 2017

I have tested this item ✅ successfully on 9cb2030

Code review


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

@ghost
Copy link

ghost commented Apr 19, 2017

RTC after two successful tests.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Apr 19, 2017
@zero-24 zero-24 added this to the Joomla 3.7.1 milestone Apr 19, 2017
@rdeutz rdeutz modified the milestones: Joomla 3.7.1, Joomla 3.7.2 May 1, 2017
@rdeutz rdeutz modified the milestones: Joomla 3.7.2, Joomla 3.7.3 May 18, 2017
@rdeutz
Copy link
Contributor

rdeutz commented May 22, 2017

@brianteeman please check the conflicts, thanks

@brianteeman
Copy link
Contributor Author

conflicts resolved

@rdeutz rdeutz merged commit a2b9de4 into joomla:staging May 22, 2017
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label May 22, 2017
@brianteeman
Copy link
Contributor Author

Thanks

@brianteeman brianteeman deleted the a11y_templates branch May 22, 2017 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants