RTC PR-5.2-dev Pending

User tests: Successful: Unsuccessful:

avatar RickR2H
RickR2H
29 Sep 2024

Pull Request for Issue # .

Summary of Changes

The new mod_articles module has no active class for the active item like there was in mod_articles_category. This PR adds this functionality.

Testing Instructions

  1. Create a list of articles with the module active on all pages.
  2. Open the inspector in the browser.
  3. With the Title Only (lists) option selected, see if the link to the current article has an active class.
    image

Actual result BEFORE applying this Pull Request

No active class

Expected result AFTER applying this Pull Request

Has an active class

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

avatar RickR2H RickR2H - open - 29 Sep 2024
avatar RickR2H RickR2H - change - 29 Sep 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 29 Sep 2024
Category Unit Tests Repository Administration com_admin SQL
avatar richard67 richard67 - change - 29 Sep 2024
Labels Added: PR-5.2-dev
Build 4.4-dev 5.2-dev
avatar joomla-cms-bot joomla-cms-bot - change - 29 Sep 2024
Category Unit Tests Repository Administration com_admin SQL Modules Front End
avatar RickR2H RickR2H - change - 29 Sep 2024
The description was changed
avatar RickR2H RickR2H - edited - 29 Sep 2024
avatar tecpromotion tecpromotion - change - 29 Sep 2024
Title
Add active class to active item in mod_ articles
[5.2] Add active class to active item in mod_ articles
avatar tecpromotion tecpromotion - edited - 29 Sep 2024
avatar brianteeman
brianteeman - comment - 30 Sep 2024

There is an active class already. Maybe its in the wrong place? I doubt we need two

<?php $attributes = ['class' => 'mod-articles-link ' . $item->active, 'itemprop' => 'url']; ?>

image

avatar RickR2H
RickR2H - comment - 30 Sep 2024

Agreed that with :has selector the article element now can be selected. Is a coverage of 91,66% acceptable to remove the active class on the article element? If so then I'll remove the outer class.

avatar RickR2H RickR2H - change - 1 Oct 2024
The description was changed
avatar RickR2H RickR2H - edited - 1 Oct 2024
avatar RickR2H
RickR2H - comment - 1 Oct 2024

@brianteeman please test the active link for the article list.

avatar Quy Quy - test_item - 3 Oct 2024 - Tested successfully
avatar Quy
Quy - comment - 3 Oct 2024

I have tested this item ✅ successfully on b2494eb


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

avatar BertaOctech BertaOctech - test_item - 4 Oct 2024 - Tested successfully
avatar BertaOctech
BertaOctech - comment - 4 Oct 2024

I have tested this item ✅ successfully on b2494eb

I have followed test instructions.
Active class appeared in title when the patch was applied, even with Title Only.


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

avatar Quy Quy - change - 4 Oct 2024
Status Pending Ready to Commit
avatar Quy
Quy - comment - 4 Oct 2024

RTC


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

avatar Quy Quy - change - 4 Oct 2024
Labels Added: RTC
avatar Hackwar Hackwar - change - 4 Oct 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-10-04 17:45:58
Closed_By Hackwar
avatar Hackwar Hackwar - close - 4 Oct 2024
avatar Hackwar Hackwar - merge - 4 Oct 2024
avatar Hackwar
Hackwar - comment - 4 Oct 2024

Thank you for your contribution @RickR2H

Add a Comment

Login with GitHub to post a comment