Skip to content

[5.4] Remove unused CSS from mod_articles#45974

Merged
muhme merged 2 commits intojoomla:5.4-devfrom
drmenzelit:unused-css
Sep 9, 2025
Merged

[5.4] Remove unused CSS from mod_articles#45974
muhme merged 2 commits intojoomla:5.4-devfrom
drmenzelit:unused-css

Conversation

@drmenzelit
Copy link
Collaborator

@drmenzelit drmenzelit commented Aug 24, 2025

During the creation of the mod_articles for Joomla 5.2 there were several changes and a few lines of CSS were not removed in time.

Summary of Changes

Removed unused CSS

Testing Instructions

Create articles module with different options (vertical, horizontal, with / without images, etc.) and in different module positions. Apply the PR and check that nothing changed.

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

No changes

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@joomla-cms-bot joomla-cms-bot added NPM Resource Changed This Pull Request can't be tested by Patchtester PR-5.4-dev labels Aug 24, 2025
@richard67 richard67 changed the title Remove unused CSS from mod_articles [5.4] Remove unused CSS from mod_articles Aug 24, 2025
@muhme muhme added the bug label Aug 25, 2025
@richard67
Copy link
Member

Suggested add on to testing instructions: Test the module not only with different options but also on different positions to make sure the CSS removed here is not needed on certain module positions for overriding CSS coming from the template for that position.

@drmenzelit Does that make sense? If so, should it be added to the testing instructions?

@exlemor
Copy link

exlemor commented Aug 25, 2025

I have tested this item ✅ successfully on 4861bcf

I have tested this successfully with 4 new Articles Modules on the same page. - Each with different configs/settings. Thanks @drmenzelit

(screenshots)
Article I

article-I-main article-I-display-options

Article II

article-II-main article-II-display-options

Article III

article-III-main article-III-display-options

Article IV

article-IV-main article-IV-display-options
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45974.

@richard67
Copy link
Member

@exlemor Could you check it on different module positions, too?

@drmenzelit
Copy link
Collaborator Author

@richard67 you are right, I added the module positions to the testing instructions. @exlemor has already tested different module positions ;-)

@exlemor
Copy link

exlemor commented Aug 25, 2025

@exlemor Could you check it on different module positions, too?

Hi @richard67, humm I thought I did, see the first of each of 2 screenshots?

Article I module is on below-top,
Article II module is on main-bottom
Article II module is on sidebar-right
Article IV module is on top-b

(if you want me to check another position, let me know)

@richard67
Copy link
Member

@exlemor Well, you have different settings, but for each setting you test only one module position.

What if some setting looks good on one position but not on the other, but some other setting does not have that problem?

I think each setting should be tested on several positions.

@exlemor
Copy link

exlemor commented Aug 25, 2025

@exlemor Well, you have different settings, but for each setting you test only one module position.

What if some setting looks good on one position but not on the other, but some other setting does not have that problem?

I think each setting should be tested on several positions.

OK, sure... but with the number of settings in the new Articles module, and with at least 5 module positions (knowing there are quite a few), unless my math is wrong that could be as high as 17,100,720 possible combinations to test... lol

I will do more testing (but not 17 millions :p lol)

@richard67
Copy link
Member

Sure not 17 million. The main thing is the layout, horizontal or whatever else, on different positions (including left and right sidebars).

@exlemor
Copy link

exlemor commented Aug 25, 2025

@richard67 - continued to test more combinations in the last 50 or so minutes (and other than finding something that already reported about position: below-top related to the new article module and how the grid is defined and not this PR) nothing else - everything behaved as it should!

Thank you @drmenzelit!

@richard67
Copy link
Member

@exlemor Thanks for checking.

@dautrich
Copy link

dautrich commented Sep 8, 2025

I have tested this item ✅ successfully on 4861bcf


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

@richard67
Copy link
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Sep 8, 2025
@muhme
Copy link
Contributor

muhme commented Sep 9, 2025

Final test before merge with JBT graft nightly build and full package from PR
✅ Created two modules, one with ascending and one with descending order, different places tested: sidebar-right, below-top and main-bottom

@muhme muhme merged commit a292f43 into joomla:5.4-dev Sep 9, 2025
40 checks passed
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Sep 9, 2025
@muhme muhme added this to the Joomla! 5.4.0 milestone Sep 9, 2025
@muhme
Copy link
Contributor

muhme commented Sep 9, 2025

Thank you @drmenzelit for your contribution. Thank you @exlemor and @dautrich for testing.

dgrammatiko pushed a commit to dgrammatiko/joomla-cms that referenced this pull request Jan 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug NPM Resource Changed This Pull Request can't be tested by Patchtester PR-5.4-dev

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants