? Pending

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
7 Jun 2018

Pull Request for Issue # .

Summary of Changes

This cleans up mainly modal-related buttons. Most notable change is restoration of <button> element which was removed in PRs #11787, #14483, #16156. The original issue #11765 was caused by missing type attribute in user field layout. Although switching to <a> tag fixed the issue, it wasn't the right way to do it.

For future reference:
Use <button> element in favor of <a> for button functionality whenever possible (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_button_role).
Always add type attribute (most browsers default to type="submit" without it).
button is not a valid value for type attribute on <a> (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-type).
Don't use aria-hidden="true" on buttons containing readable text. Use it on non-readable elements like icons.

Testing Instructions

  1. Code review.
  2. Check that buttons work correctly.
  3. Confirm that you cannot reproduce issue #11765.

Documentation Changes Required

No.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar SharkyKZ SharkyKZ - open - 7 Jun 2018
avatar SharkyKZ SharkyKZ - change - 7 Jun 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Jun 2018
Category Administration com_associations com_banners com_categories com_contact com_content com_fields com_media com_menus com_messages com_modules com_newsfeeds com_redirect com_tags com_templates
avatar SharkyKZ SharkyKZ - change - 7 Jun 2018
Labels Added: ?
avatar brianteeman brianteeman - test_item - 7 Jun 2018 - Tested successfully
avatar brianteeman
brianteeman - comment - 7 Jun 2018

I have tested this item successfully on a2aa527

tested all the modals I could think of
Tested to make sure the original bug had not come back


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

avatar brianteeman
brianteeman - comment - 7 Jun 2018

Searching the entire codebase for 'a class="btn' reveals a lot more that might need to be checked


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

avatar Quy Quy - test_item - 7 Jun 2018 - Tested successfully
avatar Quy
Quy - comment - 7 Jun 2018

I have tested this item successfully on 2dc4363


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

avatar Quy
Quy - comment - 7 Jun 2018

@brianteeman This PR cleans up mainly modal-related buttons.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Jun 2018

@brianteeman can you please retest?

avatar Quy
Quy - comment - 16 Jul 2018

I did a search on <button class= and found more to move type before class.

avatar SharkyKZ
SharkyKZ - comment - 16 Jul 2018

There are also more buttons with type missing. But keep that for a separate PR.

avatar joomla-cms-bot joomla-cms-bot - change - 3 Oct 2018
Category Administration com_associations com_banners com_categories com_contact com_content com_fields com_media com_menus com_messages com_modules com_newsfeeds com_redirect com_tags com_templates Repository Administration com_associations com_banners com_categories com_contact com_content com_fields com_media com_menus com_messages com_modules com_newsfeeds com_redirect com_tags com_templates
avatar Quy
Quy - comment - 3 Oct 2018

Why is Security.md in this PR?

avatar joomla-cms-bot joomla-cms-bot - change - 4 Oct 2018
Category Administration com_associations com_banners com_categories com_contact com_content com_fields com_media com_menus com_messages com_modules com_newsfeeds com_redirect com_tags com_templates Repository Unit Tests Repository Administration com_admin
avatar SharkyKZ SharkyKZ - change - 4 Oct 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 4 Oct 2018
Category Administration Repository Unit Tests com_admin Repository Administration com_associations com_banners com_categories com_contact com_content com_fields com_media com_menus com_messages com_modules com_newsfeeds com_redirect com_tags com_templates
avatar SharkyKZ
SharkyKZ - comment - 4 Oct 2018

EOL issue. Closing this now. Going to break it down into smaller pieces.

avatar SharkyKZ SharkyKZ - change - 4 Oct 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-10-04 06:51:42
Closed_By SharkyKZ
Labels Removed: ?
avatar SharkyKZ SharkyKZ - close - 4 Oct 2018

Add a Comment

Login with GitHub to post a comment