? NPM Resource Changed ? Pending

User tests: Successful: Unsuccessful:

avatar N6REJ
N6REJ
17 Nov 2020

Pull Request for Issue # joomla/cassiopeia#209 & #31388

Summary of Changes

Changes flow of tags in list all view to columnar to match options.
Supports responsive flow.

Testing Instructions

If your using the test data sample then there is an "all tags" item otherwise...
Create some tags.
Create a menu item of type "List All Tags".
Play with the option "Number of Columns". ( in menu item )
apply pr
run npm build:css
verify that the number of columns matches the option chosen.
works based on # of columns. If columns = 0 then its flex flow so everything just flows & sizes automatically, if columns = 1 it's vertical layout, else its columnar layout.

Actual result BEFORE applying this Pull Request

image

Expected result AFTER applying this Pull Request

Firefox
Chrome
tags

Documentation Changes Required

works based on # of columns. If columns = 0 then its flex flow so everything just flows & sizes automatically, if columns = 1 it's vertical layout, else its columnar layout.

avatar N6REJ N6REJ - open - 17 Nov 2020
avatar N6REJ N6REJ - change - 17 Nov 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Nov 2020
Category com_tags Front End
avatar N6REJ
N6REJ - comment - 17 Nov 2020

totally borked in chrome but as above in FF
image

avatar infograf768
infograf768 - comment - 17 Nov 2020

Works fine in FF and Safari.

Screen Shot 2020-11-17 at 11 25 14

In chrome the issue comes from the form control height:

.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 1.2rem + 2px);  // HERE is the issue.
    padding: .6rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

If we comment the height, all is fine.

Screen Shot 2020-11-17 at 11 32 42

avatar N6REJ N6REJ - change - 17 Nov 2020
Labels Added: ?
avatar N6REJ
N6REJ - comment - 17 Nov 2020

Chrome now renders properly
image

avatar N6REJ N6REJ - change - 17 Nov 2020
The description was changed
avatar N6REJ N6REJ - edited - 17 Nov 2020
avatar N6REJ N6REJ - change - 17 Nov 2020
The description was changed
avatar N6REJ N6REJ - edited - 17 Nov 2020
avatar N6REJ N6REJ - change - 17 Nov 2020
Title
[4.0] [DRAFT] Change tags flow to horizontal
[4.0] Change tags flow to horizontal
avatar N6REJ N6REJ - edited - 17 Nov 2020
avatar infograf768 infograf768 - test_item - 17 Nov 2020 - Tested successfully
avatar infograf768
infograf768 - comment - 17 Nov 2020

I have tested this item successfully on 072b56c


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

avatar N6REJ N6REJ - change - 17 Nov 2020
The description was changed
avatar N6REJ N6REJ - edited - 17 Nov 2020
avatar N6REJ N6REJ - change - 17 Nov 2020
The description was changed
avatar N6REJ N6REJ - edited - 17 Nov 2020
avatar brianteeman
brianteeman - comment - 17 Nov 2020

Unless I am reading this wrong this file will generate invalid markup if this condition is not met
<?php if ($n === 1 || $i === 0 || $bscolumns === 1 || $i % $bscolumns === 0) : ?>

As we will end up a with a list of li without any wrapping ul

avatar N6REJ
N6REJ - comment - 17 Nov 2020

Unless I am reading this wrong this file will generate invalid markup if this condition is not met
<?php if ($n === 1 || $i === 0 || $bscolumns === 1 || $i % $bscolumns === 0) : ?>

As we will end up a with a list of li without any wrapping ul

Correct. But thats as desired. We want it to fail because then we're still parsing tag items. We only want it to succeed on new groups.
$i=0 guarantee's we'll ALWAYS use it at least once.

avatar brianteeman
brianteeman - comment - 17 Nov 2020

So why not move the ul out of the for each item loop and then you dont need any of the conditions

avatar N6REJ
N6REJ - comment - 17 Nov 2020

I didn't write the code, however, to answer your question, because each nth item will require a new row ( ul ) because the number of optional columns has been reached. I know its confusing, I had to spend a few minutes wrapping my head around it. I probably would've done it differently myself.

avatar brianteeman
brianteeman - comment - 17 Nov 2020

If you are saying that the code generates multiple lists then that is wrong markup - it should be one list

avatar chmst
chmst - comment - 17 Nov 2020

Agree. It must be one list to be semantically correct. @N6REJ it is not your fault.

I have another question: The column param - isn't it old fashioned in times of mobile first?
Why not choose "vertical" or "horizontal" and then let it be flexible?

avatar N6REJ
N6REJ - comment - 17 Nov 2020

ok, I'll examine the code and see how I can make it better...
@brianteeman they have it as several lists to contain it to n items per row.

avatar N6REJ
N6REJ - comment - 17 Nov 2020

CAN we change this behavior? Doing so will break b/c as far as I can tell.
image
And if we do do it, how/what changes do we make do the db? @richard67

avatar brianteeman
brianteeman - comment - 17 Nov 2020

We can break b/c but ideally we should aim not to. In this case if J3 also has this incorrect code then you are fixing a bug not breaking b/c

I usually do this in css with column-count

if tag_columns = default
echo the list
else
echo inline style

but @chmst approach is also valid

avatar N6REJ
N6REJ - comment - 18 Nov 2020

ok, so how do we come to a consensus as to the best plan of action. I put a short survey out on glip but so far no responses.
Talking to alison she wants control on desktop and flow on mobile. Seems like christianne wants flow period.

I'm open to changing things just want to all get on the same page and do whats best for the project.

avatar N6REJ
N6REJ - comment - 19 Nov 2020

What if we give them an additional parameter to turn columnar sizing on/off. If off it would fit as many in a row as possible.

avatar N6REJ
N6REJ - comment - 19 Nov 2020

is
image

supposed to limit the # of tags? If so its broken

avatar N6REJ
N6REJ - comment - 19 Nov 2020

@brianteeman @chmst this thing is taking on a life of its own :P
should we merge this one and create another for the changes that will be needed/desired? I've got a poll out on the fb group right now and its producing some interesting feedback.

avatar joomla-cms-bot joomla-cms-bot - change - 20 Nov 2020
Category com_tags Front End com_tags Front End Plugins Templates (site) NPM Change
avatar N6REJ
N6REJ - comment - 20 Nov 2020

works based on # of columns. If columns = 0 then its flex flow so everything just flows & sizes automatically, if columns = 1 it's vertical layout, else its columnar layout.

avatar N6REJ N6REJ - change - 20 Nov 2020
The description was changed
avatar N6REJ N6REJ - edited - 20 Nov 2020
avatar N6REJ N6REJ - change - 20 Nov 2020
The description was changed
avatar N6REJ N6REJ - edited - 20 Nov 2020
avatar brianteeman
brianteeman - comment - 20 Nov 2020

As long as it is only one list I dont care

avatar N6REJ
N6REJ - comment - 20 Nov 2020

it is

avatar adj9
adj9 - comment - 21 Nov 2020

I can't apply this PR, with J! Patch Tester
Schermata 2020-11-21 alle 11 51 54

avatar richard67
richard67 - comment - 21 Nov 2020

@adj9 Testing sample data is not available in a normal installation which has been made with an installation package. It is only available if you are working on a development environment, i.e. a git clone. That's why patchtester can't apply the patch for testing sample data on an installation where this kind of sample data is not included.

avatar richard67
richard67 - comment - 21 Nov 2020

@N6REJ Drone reposts SCSS code style errors here: https://ci.joomla.org/joomla/joomla-cms/37681/1/20. Please fix. Thanks in advance.

1466562 21 Nov 2020 avatar N6REJ phpcs
avatar N6REJ N6REJ - change - 21 Nov 2020
Labels Added: NPM Resource Changed
5864c20 21 Nov 2020 avatar N6REJ phpcs
avatar N6REJ N6REJ - change - 21 Nov 2020
Title
[4.0] Change tags flow to horizontal
[4.0] Change tags list all behavior
avatar N6REJ N6REJ - edited - 21 Nov 2020
avatar N6REJ N6REJ - change - 21 Nov 2020
The description was changed
avatar N6REJ N6REJ - edited - 21 Nov 2020
avatar N6REJ N6REJ - change - 21 Nov 2020
Title
[4.0] Change tags list all behavior
[4.0] Change tags "list all" behavior
avatar N6REJ N6REJ - edited - 21 Nov 2020
avatar ceford
ceford - comment - 3 Jan 2021

Looked at this today - works on Firefox, Chrome and Safari on Mac. But items don't wrap on narrow screens - so if you set 4 columns you get four really narrow columns.


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

avatar N6REJ
N6REJ - comment - 6 Jan 2021

@ceford thats by design. If you set 0 then it will use responsive behaviors. If you set 4 it assumes you know its 4 columns regardless of screen size.

avatar Quy
Quy - comment - 15 Mar 2021

@N6REJ Please fix conflicts. Thanks.

avatar N6REJ N6REJ - change - 22 Mar 2021
Labels Added: Conflicting Files
avatar N6REJ N6REJ - change - 14 Jan 2022
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2022-01-14 20:45:16
Closed_By N6REJ
Labels Added: ? ?
Removed: Conflicting Files ?
avatar N6REJ N6REJ - close - 14 Jan 2022

Add a Comment

Login with GitHub to post a comment