Skip to content

[4.0] [a11y] Remove redundant title from site components#24282

Merged
wilsonge merged 1 commit intojoomla:4.0-devfrom
brianteeman:title5
Mar 21, 2019
Merged

[4.0] [a11y] Remove redundant title from site components#24282
wilsonge merged 1 commit intojoomla:4.0-devfrom
brianteeman:title5

Conversation

@brianteeman
Copy link
Copy Markdown
Contributor

The title attribute is generally not very accessible. Keyboard users and touch screen users will never see it.

It is particularly useless to add a title which is the same as other text already present as that can result in a screen reader announcing the same text twice.

This PR removes the redundant title attribute where the same text is already displayed and removes/replaces one language string where it was not needed

NOTE this is just a first pass at removing the low hanging fruit and a further pr will be needed when the tooltips are reviewed

The title attribute is generally not very accessible. Keyboard users and touch screen users will never see it.

It is particularly useless to add a title which is the same as other text already present as that can result in a screen reader announcing the same text twice.

This PR removes the redundant title attribute where the same text is already displayed and removes/replaces one language string where it wwas not needed

NOTE this is just a first pass at removing the low hanging fruit and a further pr will be needed when the tooltips are reviewed
@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-4.0-dev labels Mar 21, 2019
@wilsonge wilsonge merged commit c570c6c into joomla:4.0-dev Mar 21, 2019
@wilsonge wilsonge added this to the Joomla 4.0 milestone Mar 21, 2019
@wilsonge
Copy link
Copy Markdown
Contributor

Overriding system tests as appear to have broken in drone at the moment

@brianteeman
Copy link
Copy Markdown
Contributor Author

thanks

@brianteeman brianteeman deleted the title5 branch March 21, 2019 13:16
<h3 class="page-header item-title">
<?php if ( $this->params->get('show_cat_num_articles', 1)) : ?>
<span class="badge badge-info tip hasTooltip" title="<?php echo HTMLHelper::_('tooltipText', 'COM_CONTENT_NUM_ITEMS_TIP'); ?>">
<span class="badge badge-info tip hasTooltip">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove tip hasTooltip.
Add <?php echo Text::_('COM_CONTENT_NUM_ITEMS'); ?>&nbsp;

<h3 class="page-header item-title">
<?php if ( $this->params->get('show_cat_num_articles', 1)) : ?>
<span class="badge badge-info tip hasTooltip" title="<?php echo HTMLHelper::_('tooltipText', 'COM_CONTENT_NUM_ITEMS_TIP'); ?>">
<span class="badge badge-info tip hasTooltip" title="<?php echo HTMLHelper::_('tooltipText', 'COM_CONTENT_NUM_ITEMS'); ?>">
Copy link
Copy Markdown
Contributor

@Quy Quy Mar 22, 2019

Choose a reason for hiding this comment

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

Remove tip hasTooltip and title attribute.
Add <?php echo Text::_('COM_CONTENT_NUM_ITEMS'); ?>&nbsp;

<?php echo $this->escape($child->title); ?></a>
<?php if ( $this->params->get('show_cat_num_articles', 1)) : ?>
<span class="badge badge-info tip hasTooltip" title="<?php echo HTMLHelper::_('tooltipText', 'COM_CONTENT_NUM_ITEMS_TIP'); ?>">
<span class="badge badge-info tip hasTooltip" title="<?php echo HTMLHelper::_('tooltipText', 'COM_CONTENT_NUM_ITEMS'); ?>">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove tip hasTooltip and title attribute.
Add <?php echo Text::_('COM_CONTENT_NUM_ITEMS'); ?>&nbsp;

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

Labels

Language Change This is for Translators

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants