? ? ? NPM Resource Changed Pending

User tests: Successful: Unsuccessful:

avatar RickR2H
RickR2H
1 Aug 2021

Pull Request for Issue #35003 and replacement of PR #35004

Summary of Changes

Added holy grail layout to the Cassiopeia template. That way the footer can be pushed to the bottom if there is less content then the screen height. Changed the way the scroll to top is implemented. In the process also removed some obsolete CSS code.

Testing Instructions

See issue #35003 and description of PR #34849
Please test with and without modules and content and in different display sizes. Also test with short content and some module in footer and header positions.

Don't forget to test the error page as well. This can be done bij typing a URL which doesn't exist on the frontend of the site. For instance https://[test site url]/index.php/thislinkdoesnotexist. This will generate a 404 error, page not found. Make sure the footer is also be on the bottom of the site.

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

Documentation Changes Required

avatar RickR2H RickR2H - open - 1 Aug 2021
avatar RickR2H RickR2H - change - 1 Aug 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 1 Aug 2021
Category Front End Templates (site) JavaScript NPM Change
avatar RickR2H
RickR2H - comment - 1 Aug 2021
avatar hans2103
hans2103 - comment - 1 Aug 2021

@RickR2H can you move the fix for scroll-to-top to another PR or adjust the description and title of this PR?
You're changing more than you describe.

avatar RickR2H RickR2H - change - 1 Aug 2021
The description was changed
Labels Added: NPM Resource Changed ?
avatar RickR2H RickR2H - change - 1 Aug 2021
Title
Push footer to bottom and fix content vertically centered
Push footer to bottom and fix content vertically centered and fix scroll to top
avatar RickR2H RickR2H - edited - 1 Aug 2021
avatar RickR2H
RickR2H - comment - 1 Aug 2021

@hans2103 All changes are connected, so I changed the title and description.

avatar hans2103
hans2103 - comment - 1 Aug 2021

please adjust the following:

templates/cassiopeia/scss/blocks/_back-to-top.scss
7:3  ✖  Expected "position" to come before "opacity"     order/properties-order
9:3  ✖  Expected "right" to come before "bottom"         order/properties-order
17:3  ✖  Expected "z-index" to come before "transition"   order/properties-order

that's why the build fails

avatar richard67
richard67 - comment - 1 Aug 2021

@RickR2H Regarding your review request: I think I'm not the right guy to review since my knowledge on CSS and JS is too little.

avatar RickR2H RickR2H - change - 1 Aug 2021
The description was changed
avatar RickR2H
RickR2H - comment - 1 Aug 2021

please adjust the following:

templates/cassiopeia/scss/blocks/_back-to-top.scss
7:3  ✖  Expected "position" to come before "opacity"     order/properties-order
9:3  ✖  Expected "right" to come before "bottom"         order/properties-order
17:3  ✖  Expected "z-index" to come before "transition"   order/properties-order

that's why the build fails

Thanks Hans. Pushed new commit

avatar richard67
richard67 - comment - 1 Aug 2021

Just wanted to post but Hans was faster.

avatar hans2103
hans2103 - comment - 1 Aug 2021

@RickR2H onwards to solve the next check.

	templates/cassiopeia/scss/blocks/_back-to-top.scss
8	  8:3  ✖  Expected "right" to come before "opacity"           order/properties-order
9	 16:3  ✖  Expected "z-index" to come before "border-radius"   order/properties-order

note... if you only move right, the next build will fail because bottom needs to be before opacity too.
You might consider using scss code styling check in your IDE.

avatar richard67
richard67 - comment - 1 Aug 2021

@RickR2H You can use following commands to check code style on the command line if you have npm:

npm run lint:css

npm run lint:js

avatar RickR2H
RickR2H - comment - 1 Aug 2021

npm run lint:css

Thanks Richard! I'll do that next time!

avatar hans2103
hans2103 - comment - 2 Aug 2021

@RickR2H I see a lot of spacing added... is that correct?
https://github.com/joomla/joomla-cms/pull/35012/files
Schermafbeelding 2021-08-02 om 11 42 42

avatar RickR2H
RickR2H - comment - 2 Aug 2021

Mmmm that's look like something is, wrong with the indentation. I'll try to fix today.

avatar RickR2H
RickR2H - comment - 2 Aug 2021

@hans2103 Did a review of the whole index.php to make indentation more structured. To review the indentations, please take a look at the whole file instead of looking at only the changes in Git. Hope these changes are more appealing to the eye ?

avatar dgrammatiko
dgrammatiko - comment - 2 Aug 2021

@RickR2H please remove the .gz file

avatar hans2103 hans2103 - test_item - 2 Aug 2021 - Tested successfully
avatar hans2103
hans2103 - comment - 2 Aug 2021

I have tested this item successfully on daf07c2


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

avatar drmenzelit drmenzelit - test_item - 2 Aug 2021 - Tested successfully
avatar drmenzelit
drmenzelit - comment - 2 Aug 2021

I have tested this item successfully on daf07c2

Tested with and without content, with and without back-to-top, with and without modules on the sidebar, in rtl and in different display sizes.

The case with very short content and some modules in bottom positions is a very edge case I guess, so I can live with bottom modules not being at the very bottom of the page ;-)

Thank you @RickR2H for your work.


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

avatar RickR2H
RickR2H - comment - 2 Aug 2021

@drmenzelit @hans2103 thanks for testing


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

avatar richard67 richard67 - change - 2 Aug 2021
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 2 Aug 2021

RTC


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

avatar RickR2H
RickR2H - comment - 14 Aug 2021

@wilsonge dm on Glip

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2021

@wilsonge Ive tested and this works and fixes #35119. LGTM :)

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2021

Actually... while this fixes the immediate issue of #35119 enough to launch Joomla 4, the 404/403 error page is screwed up and the footer appears above the content

Screenshot 2021-08-16 at 22 11 30

avatar softforge softforge - test_item - 16 Aug 2021 - Tested successfully
avatar softforge
softforge - comment - 16 Aug 2021

I have tested this item successfully on daf07c2

Further tests on this and still its working fine


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

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2021

Further tests on this and still its working fine

Except its not though. Test the error page. The 404 page. The 403 error page.

avatar RickR2H
RickR2H - comment - 16 Aug 2021

@PhilETaylor I can check if this can be fixed really quickly...

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2021

also if you have a named link fragment like

<a href="#top"......

but there is no named anchor html element with a name of top, is that even valid? Probably valid HTML but still not perfect right?

Yes i know JS is doing the "actual" window.scrollTo but there should be a named anchor for completeness right?

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2021

Also - is it meant to smooth scroll still? because it doesnt, it jumps instantly when clicked.

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2021

Also - is it meant to smooth scroll still? because it doesnt, it jumps instantly when clicked.

Ignore that - Safari on mac doesnt like smooth scroll apparently. Works in google chrome... yet another difference with Joomla and Safari :(

avatar RickR2H RickR2H - change - 16 Aug 2021
Labels Added: ? ?
Removed: ?
avatar RickR2H
RickR2H - comment - 16 Aug 2021

@PhilETaylor the error page is fixed...

avatar RickR2H
RickR2H - comment - 16 Aug 2021

Problem now is that is need two tests to pass

avatar richard67
richard67 - comment - 16 Aug 2021

@RickR2H Could you update your testing instructions by adding a short hint to check also the error page? Thanks in advance.

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2021

@PhilETaylor the error page is fixed...

Yes I can confirm its working for me too now - thanks for quickly fixing this. Ive not comprehensively tested the rest of the PR, apart from it fixes my reported issue in #35119 and now fixes the error page too.

@richard67 @wilsonge Im happy if you are, the other tests are valid still I think because the changes only changed the error.php files.

avatar RickR2H RickR2H - change - 16 Aug 2021
The description was changed
avatar RickR2H RickR2H - edited - 16 Aug 2021
avatar richard67
richard67 - comment - 16 Aug 2021

@PhilETaylor If you mark your test result in the issue tracker here https://issues.joomla.org/tracker/joomla-cms/35012 and @softforge or one of the other previous testers is available to test again, that would be fine.

avatar PhilETaylor PhilETaylor - test_item - 16 Aug 2021 - Tested successfully
avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2021

I have tested this item successfully on ec7881f


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

avatar RickR2H
RickR2H - comment - 16 Aug 2021

Updated the test instructions as mentioned

avatar RickR2H
RickR2H - comment - 16 Aug 2021

@richard67 we still need one more test to pass ?

avatar softforge softforge - test_item - 16 Aug 2021 - Tested successfully
avatar softforge
softforge - comment - 16 Aug 2021

I have tested this item successfully on ec7881f

Had server errors on. Switched off and could confirm Phil T issue. Updated to the latest build and confirm the footer switched position to the correct position on 404 and 403.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35012.
avatar wilsonge wilsonge - change - 16 Aug 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-08-16 22:10:23
Closed_By wilsonge
Labels Added: ? ? ?
Removed: ? ?
avatar wilsonge wilsonge - close - 16 Aug 2021
avatar wilsonge wilsonge - merge - 16 Aug 2021
avatar wilsonge
wilsonge - comment - 16 Aug 2021

Thanks!

avatar richard67
richard67 - comment - 16 Aug 2021

Has anyone tested RTL?

avatar richard67
richard67 - comment - 16 Aug 2021

I am just testing, too, and just wanted to.

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2021

Has anyone tested RTL?

I cant even spell my name backward. So no.

avatar RickR2H
RickR2H - comment - 16 Aug 2021

Will check now...

avatar richard67
richard67 - comment - 16 Aug 2021

RTL looked ok here, the rest too.

I've noticed that the error page doesn't respect the "Sticky Header" option of the template style settings, but that might also have been the case without this PR. am just checking that.

avatar richard67
richard67 - comment - 16 Aug 2021

Yes, was also case before this PR. So I have not found any issues, all ok.

Now let's hope nobody of us missed anything ;-)

avatar RickR2H
RickR2H - comment - 16 Aug 2021

@richard67 RTL works! Also tested the error page. Thanks to all!

Add a Comment

Login with GitHub to post a comment