? ? Pending

User tests: Successful: Unsuccessful:

avatar hans2103
hans2103
1 Sep 2020

Pull Request for Issue # .

Summary of Changes

quote from @Hackwar taken from a private message to find out reason of changing ul to dl

I used a DL because I considered that the syntactically correct structure. There is no deeper reasoning.

Changing it from DL back to UL makes it easier for frontend developers to style each search result.
Styling DT+DD is not as easy as styling a LI

Testing Instructions

  • Go to the search results.
    • using Joomla 4 with Blog Sample Data it will be the following url with blog as searched word.
      /index.php/component/finder/search?q=blog&Itemid=101&Itemid=101
  • Inspect element on the search results and see the HTML structure
  • Apply this PR, refresh the page
  • Inspect element on the search results and see the HTML structure

Actual result BEFORE applying this Pull Request

It is very hard to style dt+dd+dd+dd as a card. Try adding a background image, box-shadow and spacing between the individual search results.

Schermafbeelding 2020-09-01 om 08 56 15

Expected result AFTER applying this Pull Request

After applying this PR it is much easier to style individual search results.

Schermafbeelding 2020-09-01 om 08 55 27

Documentation Changes Required

avatar hans2103 hans2103 - open - 1 Sep 2020
avatar hans2103 hans2103 - change - 1 Sep 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 1 Sep 2020
Category Front End com_finder
avatar hans2103 hans2103 - change - 1 Sep 2020
Labels Added: ?
avatar paternax paternax - test_item - 1 Sep 2020 - Tested successfully
avatar paternax
paternax - comment - 1 Sep 2020

I have tested this item successfully on c9f4593

The code looks like described.

Perhaps a bit overstructured in the inner part of the li-element. There are three levels: header->h4->a for each result title and three times the same class: result-title(in li, header and h4)


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

avatar hans2103
hans2103 - comment - 1 Sep 2020

Thank you for testing.

@paternax

Perhaps a bit overstructured in the inner part of the li-element. There are three levels: header->h4->a for each result title and three times the same class: result-title(in li, header and h4)

After merging this PR where DL will be replaced by UL I will create a new PR to simplify the HTML structure of a search result. I agree on the HTML structure.

avatar Quy Quy - test_item - 1 Sep 2020 - Tested successfully
avatar Quy
Quy - comment - 1 Sep 2020

I have tested this item successfully on c9f4593


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

avatar Quy Quy - change - 1 Sep 2020
Status Pending Ready to Commit
avatar Quy
Quy - comment - 1 Sep 2020

RTC


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

avatar wilsonge
wilsonge - comment - 2 Sep 2020

Makes sense. But given it’s search results I assume ol is more logical than ul as they are ordered by search relevancy

avatar hans2103
hans2103 - comment - 2 Sep 2020

@wilsonge can changing ul into ol be done in another PR?
The impact is bigger... since the search results can be stretched over multiple pages a <li start="number"> should be added to prevent the numbering start over on 1 on the second page and so on.

avatar wilsonge
wilsonge - comment - 2 Sep 2020

Thats true. But still think it makes more sense to do it like that

avatar wilsonge wilsonge - change - 2 Sep 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-09-02 08:58:25
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 2 Sep 2020
avatar wilsonge wilsonge - merge - 2 Sep 2020
avatar wilsonge
wilsonge - comment - 2 Sep 2020

Thanks!

avatar hans2103
hans2103 - comment - 2 Sep 2020

@wilsonge Created a draft PR to adjust individual search result #30550
Including using a ol instead of ul

Add a Comment

Login with GitHub to post a comment