NPM Resource Changed ? Pending

User tests: Successful: Unsuccessful:

avatar eopws
eopws
24 May 2021

Pull Request for Issue #34117.

Summary of Changes

Page resize logic updated. Now the resize function called when page loaded in order to solve whether the menu should be collapsed or not (according to aria-expanded="false" on mobile the menu should be collapsed initially).

Testing Instructions

  1. Visit the Global Configuration page in the Backend.
  2. Switch to the mobile view using Devtools.
  3. Refresh the page while being in the mobile view or navigate outside and back to this page to imitate how a mobile user would enter this page.
  4. Notice that the sidebar dropdown is initially collapsed (Contrary to the previous behaviour) and when you press the toggle button animation is ok contrary to the previous behaviour.

Actual result BEFORE applying this Pull Request

test

Expected result AFTER applying this Pull Request

after

Documentation Changes Required

Added the resizeAction function and a comment to it. Please comment if documentation is incorrect (e.g. english grammar)

avatar eopws eopws - open - 24 May 2021
avatar eopws eopws - change - 24 May 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 May 2021
Category JavaScript Repository NPM Change
avatar dgrammatiko
dgrammatiko - comment - 24 May 2021

Please undo the changes here there's a PR already: #33877

avatar eopws
eopws - comment - 24 May 2021

Please undo the changes here there's a PR already: #33877

Ok.

avatar eopws eopws - close - 24 May 2021
avatar eopws eopws - change - 24 May 2021
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2021-05-24 09:27:22
Closed_By eopws
Labels Added: NPM Resource Changed ?
avatar eopws
eopws - comment - 24 May 2021

@dgrammatiko
Maybe I am wrong, but it seems that the #33877 PR doesn't solve the #34117 issue problem ・_・

avatar eopws eopws - change - 24 May 2021
Status Closed New
Closed_Date 2021-05-24 09:27:22
Closed_By eopws
avatar eopws eopws - change - 24 May 2021
Status New Pending
avatar eopws eopws - reopen - 24 May 2021
avatar dgrammatiko
dgrammatiko - comment - 24 May 2021

doesn't solve the #34117 issue problem

Of course, it doesn't because the template CANNOT and SHOULD NOT interfere with specific page/component behaviours. This PR is totally wrong, you're deferring a responsibility of a specific page to the template, that's not how things should work...

avatar eopws
eopws - comment - 24 May 2021

This PR is totally wrong, you're deferring a responsibility of a specific page to the template, that's not how things should work...

Not at all, the logic of this PR is to call 'resize' function when a page loads.

avatar dgrammatiko
dgrammatiko - comment - 24 May 2021

Please close it, it's wrong...

avatar eopws eopws - change - 24 May 2021
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2021-05-24 10:09:23
Closed_By eopws
avatar eopws eopws - close - 24 May 2021
avatar dgrammatiko
dgrammatiko - comment - 24 May 2021

So, now #33877 should fix also #34117, please test

avatar eopws
eopws - comment - 24 May 2021

So, now #33877 should fix also #34117, please test

Yes, it works, but for really small screens and still have the issue for screens beetwen 575.98px and 992px (sizes from code).

test

avatar eopws
eopws - comment - 24 May 2021

So, now #33877 should fix also #34117, please test

Also it works only on resize. Please try to reload page while using dev-tools with mobile preview turned on and you are still gonna have the issue.

avatar dgrammatiko
dgrammatiko - comment - 24 May 2021

using dev-tools with mobile preview turned on

Try to use real mobile size, not the emulation...

avatar eopws
eopws - comment - 24 May 2021

Try to use real mobile size, not the emulation...

I'm currently not able to. Hope it works.
Probably it is a dev-tools's bad =)

Add a Comment

Login with GitHub to post a comment