? ? Pending

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
22 Sep 2020

As written in #30729, the "cardGrey" chrome is basically the same chrome as the "card" (once #30729 is merged) chrome. It just has an added "card-grey" module class.

However the same can be achieved by using the "module class" parameter in the module options and add "card-grey" there.

Summary of Changes

  • Removes the chrome layout /templates/cassiopeia/html/layouts/chromes/cardGrey.php
  • Changes the styles of the positions which were using it to "card". That is "top-a", "main-top", "main-bottom" and "bottom-a".

Testing Instructions

  • Make sure to have the other PR applied as well, otherwise the chrome will not be found and you get some ugly display. Since it's RTC already, chances are high it's merged soon.
  • Add the class "card-grey" to the module class parameter in your module

Actual result BEFORE applying this Pull Request

No change as the class is there anyway, now twice.

Expected result AFTER applying this Pull Request

Position gets the darker background only if that class is added to the module, otherwise the regular white background is used.

Documentation Changes Required

None

avatar Bakual Bakual - open - 22 Sep 2020
avatar Bakual Bakual - change - 22 Sep 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Sep 2020
Category Front End Templates (site)
avatar richard67 richard67 - test_item - 22 Sep 2020 - Tested successfully
avatar richard67
richard67 - comment - 22 Sep 2020

I have tested this item successfully on a498053


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

avatar richard67
richard67 - comment - 22 Sep 2020

Hint for other testers: With patchtester you can't apply both PRs #30729 and this one here. But you can apply #30729 and then do the changes from this PR here by editing the files.

avatar Bakual
Bakual - comment - 23 Sep 2020

The other PR is now merged, so tomorrow in the nightly.

avatar richard67
richard67 - comment - 23 Sep 2020

@Bakual Please update the branch of this PR to latest 4.0-dev by merging the 4.0-dev branch of the CMS repo into it.

Update: That's needed for being able to test this PR here with patchtester.

avatar infograf768 infograf768 - test_item - 23 Sep 2020 - Tested successfully
avatar infograf768
infograf768 - comment - 23 Sep 2020

I have tested this item successfully on a498053


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

avatar infograf768 infograf768 - change - 23 Sep 2020
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 23 Sep 2020

RTC


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

avatar richard67 richard67 - change - 23 Sep 2020
Labels Added: ? ?
avatar richard67
richard67 - comment - 23 Sep 2020

@Bakual Should there be some documentation about the effect adding the class "card-grey" to the module class parameter? Or is that such a standard bootstrap thing that everybody should know who deals with bootstrap based templates?

avatar Bakual
Bakual - comment - 23 Sep 2020

That's a good question and I don't know the answer. I just assumed it was a standard Bootstrap class, but when I check the Bootstrap documentation (https://getbootstrap.com/docs/4.0/components/card/) there are no specific colour styling classes for cards.
The BS class which could be used is "bg-light" (from https://getbootstrap.com/docs/4.0/utilities/colors/) which is a tiny bit lighter than "card-grey".

The class "card-grey" seems to be a Cassiopeia class defined in https://github.com/joomla/joomla-cms/blob/4.0-dev/templates/cassiopeia/scss/vendor/bootstrap/_card.scss (together with "card-inverse" which seems to be unused).
Maybe that file could be removed - but that's a question for people who know how that stuff works. I just see that it was part of the initial template PR by @C-Lodder

avatar richard67
richard67 - comment - 23 Sep 2020

Well, maybe just add something to the "Documentation Changes Required" section of this PR, telling that it needs to document somewhere the Cassiopeia module classes which can be used, and we set the documentation required label. That will not stop this PR from being merged, and we have a reminder somewhere.

avatar Bakual
Bakual - comment - 23 Sep 2020

Personally I would just remove the cassiopeia specific styling for card-grey and people can use any of the default BS classes instead (or add own ones).

avatar Bakual
Bakual - comment - 23 Sep 2020

I'll leave this PR as is. I can try to remove the SCSS rules in another PR, as soon as I have figured out how to recreate all the compiled CSS files 😄

avatar Bakual
Bakual - comment - 24 Sep 2020

See #30754 for the removal of the scss file.

avatar wilsonge wilsonge - change - 24 Sep 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-09-24 19:40:21
Closed_By wilsonge
Labels
avatar wilsonge wilsonge - close - 24 Sep 2020
avatar wilsonge wilsonge - merge - 24 Sep 2020
avatar wilsonge
wilsonge - comment - 24 Sep 2020

Thanks!

Add a Comment

Login with GitHub to post a comment