User tests: Successful: Unsuccessful:
For A11Y reasons, this should be a button tag, not a styled anchor tag.
Pull Request for Issue # .
'Cancel' button is changed to a button tag from an anchor tag, to improved A11Y
Check that the 'Cancel' button is seen correctly by a screenreader.
Improved A11Y.
Status | New | ⇒ | Pending |
Category | ⇒ | Front End com_users |
Title |
|
I have tested this item
Labels |
Added:
?
|
I have tested this item
@tarot-ray almost there - in the latest commit you've accidentally removed the classes again :)
@tarot-ray: Add: class="btn btn-danger"
So, further changes have been made to the PR to make the line absolutely correct and perfectly A11Y compatible. Please, review.
I have tested this item
I have tested this item
LGTM!
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Just whitespace changes between the last two tests so RTC
What exactly is the point of changing anchor to a button that does exactly the same but with JS dependency?
@zwiastunsw Actually in this specific case thinking about it - I think a link was the correct choice because this is a redirect to another page. From http://web-accessibility.carnegiemuseums.org/content/buttons/
Navigation: If you want a user to navigate to a new page or to a different target on the same page, use an anchor element <a>.
Basically buttons should be used if you're doing stuff on the same page and links for moving to another page
@SharkyKZ , @wilsonge :
It's a bit more complicated. In this case, Cancel will actually redirect to another page. But the essence of this control is to cancel the action and not to move user to another page.
In this and other similar cases, Cancel cancels actions you have performed.
The command also speaks: Cancel, not Go to.
This is not just a
tag problem. If you use a
tag, make it look like a link and not like a button. Because it's confusing for keyboard users. I run the link with the Enter key, the button I run with the Enter or Space keys. If you activating link with the spacebar causes the page to scroll and not running the link.
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-03-21 13:01:07 |
Closed_By | ⇒ | wilsonge |
This doesn't work. Button with
type="button"
needs some JS code to do anything.href
is not a valid attribute for elementbutton
. If this really needs to be a button it should submit the form with cancel task.