NPM Resource Changed ? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
22 Feb 2019

Pr for #23977

This PR does TWO things

  1. It changes links into buttons
  2. It changes the class from sr-only to hidden
    (sr-only visually hides something. hidden completely hides it)

To test

As some javascript was changed you will need to run npm i

avatar brianteeman brianteeman - open - 22 Feb 2019
avatar brianteeman brianteeman - change - 22 Feb 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Feb 2019
Category Administration com_categories com_contact com_content com_menus com_newsfeeds JavaScript Repository NPM Change
avatar brianteeman
brianteeman - comment - 22 Feb 2019

@zwiastunsw This should be what you were asking for

avatar zwiastunsw
zwiastunsw - comment - 22 Feb 2019

href attribute is not a valid attribute of the button tag.

avatar brianteeman
brianteeman - comment - 22 Feb 2019

@zwiastunsw I did what you asked for

Use the button tag in all cases.

avatar zwiastunsw
zwiastunsw - comment - 23 Feb 2019

The button element cannot have the href attribute. The action should be called e.g. using the data-target attribute. Replace attributes, e.g.
from

. ' href="#ModalNew' . $modalId . '"'

to

. ' data-target="#ModalNew' . $modalId . '"'
avatar brianteeman brianteeman - change - 23 Feb 2019
Labels Added: NPM Resource Changed ?
avatar brianteeman
brianteeman - comment - 23 Feb 2019

@zwiastunsw changed as requested

avatar zwiastunsw
zwiastunsw - comment - 23 Feb 2019

In case of Clair buttons ( // Clear category button, // Clear contact button, // Clear article button, // Clear menu item button, // Clear newsfeed button) change:

. ' data-target="#"'

to

. ' type="button"'

In this case the action is defined in the onclick attribute.
The attribute data-target is not needed in this cases. The attribute type="button" is missing.

0ab9b8d 23 Feb 2019 avatar brianteeman clear
avatar zwiastunsw
zwiastunsw - comment - 23 Feb 2019

thx

avatar zwiastunsw zwiastunsw - test_item - 23 Feb 2019 - Tested successfully
avatar zwiastunsw
zwiastunsw - comment - 23 Feb 2019

I have tested this item successfully on 0ab9b8d


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

avatar brianteeman
brianteeman - comment - 23 Feb 2019

sorry it took so many iterations. my brain wasnt working

avatar zwiastunsw
zwiastunsw - comment - 23 Feb 2019

@brianteeman
Could you improve the links to buttons in the footers of the modal window in the same files?

avatar wojsmol wojsmol - test_item - 23 Feb 2019 - Tested successfully
avatar wojsmol
wojsmol - comment - 23 Feb 2019

I have tested this item successfully on 0ab9b8d


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

avatar Quy Quy - change - 23 Feb 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 23 Feb 2019

RTC


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

avatar wilsonge wilsonge - change - 27 Feb 2019
Labels Added: ?
avatar wilsonge wilsonge - change - 27 Feb 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-02-27 12:42:16
Closed_By wilsonge
avatar wilsonge
wilsonge - comment - 27 Feb 2019

Thanks!

avatar brianteeman
brianteeman - comment - 27 Feb 2019

thanks

Add a Comment

Login with GitHub to post a comment