? ? Failure

User tests: Successful: Unsuccessful:

avatar rjharishabh
rjharishabh
11 May 2021

Pull Request for Issue # .

Summary of Changes

Just add btn-secondary class to CLOSE button.
Why black #33775 (comment)

Testing Instructions

  • Disable System-Redirect plugin
  • Go to System > Redirects
  • Click on Redirect System Plugin
    system-redirect
  • A model window appears, please hover on the Close button - Doesn't become black
  • Apply PR
  • Refresh the page
  • Click on Redirect System Plugin
  • Again hover on the Close button - becomes black now

Actual result BEFORE applying this Pull Request

Doesn't become black on hover
redirect

Expected result AFTER applying this Pull Request

Becomes black on hover

Documentation Changes Required

No

avatar rjharishabh rjharishabh - open - 11 May 2021
avatar rjharishabh rjharishabh - change - 11 May 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 May 2021
Category Administration com_redirect
avatar brianteeman
brianteeman - comment - 11 May 2021

So the question here is what is correct. Red on hover or black on hover.

If we review the code base there is a fairly even split.

avatar brianteeman
brianteeman - comment - 11 May 2021

Looking at most of them the logic appears to have been
black for close
red for delete (or anything destructive)

avatar rjharishabh
rjharishabh - comment - 11 May 2021

IMO red for delete, say black for close
But when we add module in dashboard, red for close

avatar brianteeman
brianteeman - comment - 11 May 2021

Why not always black for close?

What is the logic behind that choice.

avatar rjharishabh
rjharishabh - comment - 11 May 2021

Agreed, Everywhere we should use black for close and red for delete
I choose red here because when I see the modal for Add module, red for close was there

avatar brianteeman
brianteeman - comment - 11 May 2021

So perhaps the problem is not here but with the add module ;)

avatar rjharishabh
rjharishabh - comment - 11 May 2021

So will I change here and all other places

avatar rjharishabh rjharishabh - change - 11 May 2021
Labels Added: ?
avatar rjharishabh rjharishabh - change - 11 May 2021
The description was changed
avatar rjharishabh rjharishabh - edited - 11 May 2021
avatar rjharishabh rjharishabh - change - 11 May 2021
The description was changed
avatar rjharishabh rjharishabh - edited - 11 May 2021
avatar rjharishabh rjharishabh - change - 11 May 2021
The description was changed
avatar rjharishabh rjharishabh - edited - 11 May 2021
avatar sandramay0905 sandramay0905 - test_item - 12 May 2021 - Tested unsuccessfully
avatar sandramay0905
sandramay0905 - comment - 12 May 2021

I have tested this item ? unsuccessfully on adce5f4

avatar rjharishabh
rjharishabh - comment - 12 May 2021

@sandramay0905

system-redirect.mp4
avatar sandramay0905
sandramay0905 - comment - 12 May 2021

@rjharishabh Yes, that's what i have done but not successfully after install the pr per patchtester.

avatar rjharishabh
rjharishabh - comment - 12 May 2021

@rjharishabh Yes, that's what i have done but not successfully after install the pr per patchtester.

Don't know, then what's the problem

avatar sandramay0905
sandramay0905 - comment - 12 May 2021

Sorry, i can only comment what i see on my side. Hopefully other can test successfully :-)

avatar rjharishabh
rjharishabh - comment - 12 May 2021

Sorry, i can only comment what i see on my side. Hopefully other can test successfully :-)

Yes, till then wait if someone tests it,
and based on their response I will update it
Thanks

avatar ceford
ceford - comment - 12 May 2021

If you look at the HtmlView.php file you will see that when there are no items the emptystate layout is used. You need need to change the btn class there too. Then come back and ask for a re-test. Test it yourself first!


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

avatar rjharishabh
rjharishabh - comment - 12 May 2021

Please test @ceford and @sandramay0905 once more
Thanks

avatar eopws
eopws - comment - 12 May 2021

I have tested this item ? unsuccessfully on adce5f4

Have you run "npm ci"?

avatar ceford ceford - test_item - 12 May 2021 - Tested successfully
avatar ceford
ceford - comment - 12 May 2021

I have tested this item successfully on 50871ab

You cracked it!


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

avatar ceford ceford - test_item - 12 May 2021 - Not tested
avatar ceford
ceford - comment - 12 May 2021

I have not tested this item.

Although it seems to work, onclick is taboo and you don't need it. The data-bs-dismiss will close the modal.


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

avatar brianteeman
brianteeman - comment - 12 May 2021

Although it seems to work, onclick is taboo and you don't need it. The data-bs-dismiss will close the modal.

This is the correct usage. As you can see it was also not added or edited by this PR so if you believe it should be changed then please create an issue for that. It is beyond the scope of this PR

avatar sandramay0905
sandramay0905 - comment - 13 May 2021

@eopws

Have you run "npm ci"?

I have not run this because it isn't mentioned in the test instructions. Otherwise i would use prebuild packages.

avatar ceford
ceford - comment - 13 May 2021

There is no close button in the Modal Title bar: 'closeButton' => false,

I think that should be set to true in both templates.

npm ci is not required - this pr only changes php files


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33775.
avatar brianteeman
brianteeman - comment - 13 May 2021

There is no close button in the Modal Title bar: 'closeButton' => false,
I think that should be set to true in both templates.

As you can see it was not added or edited by this PR so if you believe it should be changed then please create an issue for that. It is beyond the scope of this PR

avatar sandramay0905 sandramay0905 - test_item - 13 May 2021 - Tested successfully
avatar sandramay0905
sandramay0905 - comment - 13 May 2021

I have tested this item successfully on 50871ab


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

avatar Kostelano Kostelano - test_item - 13 May 2021 - Tested successfully
avatar Kostelano
Kostelano - comment - 13 May 2021

I have tested this item successfully on 50871ab


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

avatar richard67 richard67 - change - 13 May 2021
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 13 May 2021

RTC


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

avatar Quy Quy - change - 13 May 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-05-13 18:57:51
Closed_By Quy
Labels Added: ?
avatar Quy Quy - close - 13 May 2021
avatar Quy Quy - merge - 13 May 2021
avatar Quy
Quy - comment - 13 May 2021

Thank you!

avatar rjharishabh
rjharishabh - comment - 14 May 2021

Thanks for testing and merging

Add a Comment

Login with GitHub to post a comment