? Failure

User tests: Successful: Unsuccessful:

avatar C-Lodder
C-Lodder
12 Jul 2017

Summary of Changes

As it stands, there's no reason to have an edit button in the toolbar. Clicking on the article title directs you to the edit view.

Survey results provided y the UX team a while back shows that the vast majority of users click on the article title to edit the content as opposed to using the toolbar.

This PR removes the edit button and add a small icon to the left of the title, like so:

toolbar

I've only done this for com_content (Article Manager) as a start, so will do the rest once approved.

Progress

  • com_content
  • rest of components
avatar C-Lodder C-Lodder - open - 12 Jul 2017
avatar C-Lodder C-Lodder - change - 12 Jul 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Jul 2017
Category Administration com_content
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 12 Jul 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 12 Jul 2017

I have tested this item successfully on f481f3e


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

avatar brianteeman
brianteeman - comment - 12 Jul 2017

Looks great#

off the top of my head you need to check to make sure everything is ok when an item is checked out and also if there is an item that you dont have permission to edit.

avatar C-Lodder C-Lodder - change - 12 Jul 2017
Labels Added: ?
avatar C-Lodder
C-Lodder - comment - 12 Jul 2017

aria-hidden="true" added to icon.

The icon now also only shows when the item is checked in

toolbar2

avatar brianteeman
brianteeman - comment - 12 Jul 2017

Thanks - seems great - will test in depth later today

avatar C-Lodder C-Lodder - change - 12 Jul 2017
The description was changed
avatar C-Lodder C-Lodder - edited - 12 Jul 2017
avatar brianteeman
brianteeman - comment - 12 Jul 2017

I am wondering if we can improve this for accessibility

Currently it is two links and says "edit" "edit"

It would be much better if it was just one link that says "edit title"

avatar brianteeman
brianteeman - comment - 12 Jul 2017

I am assuming you will do another PR to remove the edit button from all the other components?

avatar C-Lodder
C-Lodder - comment - 12 Jul 2017

Technically it's still one link as both the icon and title with within the same <a> tag. I just added a right margin to the icon so that when you ho er over the title, the underline doesnt appear yhrougj the gap.

I'll do it all as 1 PR but want to make sure people are happy with the initial concept first

avatar brianteeman
brianteeman - comment - 12 Jul 2017

Quite right i should have looked atthe code not just the output.

What you could do though is to change the line to something like

<a class="hasTooltip" href="<?php echo JRoute::_('index.php?option=com_content&task=article.edit&id=' . $item->id); ?>" title="<?php echo JText::_('JACTION_EDIT'); ?> <?php echo $this->escape(addslashes($item->title)); ?>">

And then the title will be more meaningful as "Edit Article Name"

avatar C-Lodder
C-Lodder - comment - 12 Jul 2017

@brianteeman updated

avatar brianteeman brianteeman - test_item - 12 Jul 2017 - Tested successfully
avatar brianteeman
brianteeman - comment - 12 Jul 2017

I have tested this item successfully on 76fed33


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

avatar dgt41 dgt41 - test_item - 12 Jul 2017 - Tested successfully
avatar dgt41
dgt41 - comment - 12 Jul 2017

I have tested this item successfully on 76fed33


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

avatar dgt41 dgt41 - change - 12 Jul 2017
Status Pending Ready to Commit
avatar dgt41
dgt41 - comment - 12 Jul 2017

What you could do though is to change the line to something like

Not with tooltips. Links are one of the fundamental concepts of the web, if ppl don't know that clicking on a link will take them to another page (in this case the edit view) we can't and shouldn't try to teach them in the backend about it!

avatar brianteeman
brianteeman - comment - 12 Jul 2017

It's an a11y thing where you are explicitly saying what they will edit. Otherwise you have a hundred links on the page with the same title

avatar dgt41
dgt41 - comment - 12 Jul 2017

Then let's prepend the title with something like Edit: Title of the article. No tooltips, no aria-whatever

avatar mbabker
mbabker - comment - 12 Jul 2017

Isn't that what the icon is communicating to visually capable users? Or is it better to have a list of 20 links that reads Edit: Foo?

avatar brianteeman
brianteeman - comment - 12 Jul 2017

@dgt41 that's exactly what the code I proposed does. Doesn't it?

avatar dgt41
dgt41 - comment - 12 Jul 2017

@mbabker @brianteeman the icon itself is not ok, we need a fallback for screenreaders/ppl visually impaired

avatar brianteeman
brianteeman - comment - 12 Jul 2017

Unless I got !y code wrong that's all done

avatar mbabker
mbabker - comment - 12 Jul 2017

Unless I misread something the tooltip (title attribute) covers things fine for people using screenreaders or other assistive software. The only thing that's not good is for people not using those and seeing an icon, but repeating the word "Edit" 20 times doesn't seem any better.

avatar C-Lodder
C-Lodder - comment - 13 Jul 2017

Can someone remove RTC please, as I need to do the rest of the components and this title thing needs to be decided on

avatar brianteeman
brianteeman - comment - 13 Jul 2017

For reference this is why you must have a title link for accessibility
https://www.w3.org/TR/WCAG20-TECHS/H33.html

And why links must have unique titles
http://webaim.org/techniques/hypertext/#screen_readers
Links should make sense out of context. Phrases such as "click here," "more," "click for details," and so on are ambiguous when read out of context

avatar dgt41
dgt41 - comment - 13 Jul 2017

@brianteeman point is about class="hasTooltip", not the title

avatar dgt41 dgt41 - change - 13 Jul 2017
Status Ready to Commit Pending
avatar C-Lodder
C-Lodder - comment - 13 Jul 2017

@dgt41 class="hasTooltip" isn't a problem. We're already in the process of removing tooltips.

The PR adds an edit icon to list item titles and removes the edit icon from the toolbar, nothing else. The tooltip that you see is was already there

avatar C-Lodder
C-Lodder - comment - 17 Jul 2017

I'm going to carry on with this PR to remove the edit button from the remaining components. If you guys want to discuss the title any more, you can submit an issue and new PR after

avatar joomla-cms-bot joomla-cms-bot - change - 17 Jul 2017
Category Administration com_content Administration com_banners com_categories com_contact com_content com_fields com_finder com_languages com_menus com_modules com_newsfeeds com_plugins com_redirect com_tags com_templates com_users
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jul 2017
Category Administration com_content com_banners com_categories com_contact com_fields com_finder com_languages com_menus com_modules com_newsfeeds com_plugins com_redirect com_tags com_templates com_users Administration com_associations com_banners com_categories com_contact com_content com_fields com_finder com_languages com_menus com_modules com_newsfeeds com_plugins com_redirect com_tags
avatar C-Lodder
C-Lodder - comment - 17 Jul 2017

Ok, believe they're all done now

avatar C-Lodder C-Lodder - change - 17 Jul 2017
The description was changed
avatar C-Lodder C-Lodder - edited - 17 Jul 2017
avatar brianteeman brianteeman - change - 19 Jul 2017
Milestone Added:
avatar brianteeman brianteeman - change - 19 Jul 2017
Milestone Added:
avatar C-Lodder
C-Lodder - comment - 19 Jul 2017

@wilsonge @brianteeman all happy with this?

avatar brianteeman
brianteeman - comment - 19 Jul 2017

yes

avatar wilsonge wilsonge - change - 23 Jul 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-07-23 22:06:13
Closed_By wilsonge
avatar wilsonge wilsonge - close - 23 Jul 2017
avatar wilsonge wilsonge - merge - 23 Jul 2017

Add a Comment

Login with GitHub to post a comment