NPM Resource Changed ? ? Pending

User tests: Successful: Unsuccessful:

avatar N6REJ
N6REJ
5 Jul 2020

Pull Request for Issue #29957

Summary of Changes

icons now center properly

Testing Instructions

go to template styles and duplicate the atum template.
verify gold star and gray star are vertically aligned.
NPM CI REQUIRED!

Actual result BEFORE applying this Pull Request

image

Expected result AFTER applying this Pull Request

image

Documentation Changes Required

none

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar N6REJ N6REJ - open - 5 Jul 2020
avatar N6REJ N6REJ - change - 5 Jul 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 5 Jul 2020
Category Administration Templates (admin) NPM Change Repository
avatar N6REJ N6REJ - change - 5 Jul 2020
The description was changed
avatar N6REJ N6REJ - edited - 5 Jul 2020
avatar N6REJ N6REJ - change - 5 Jul 2020
The description was changed
avatar N6REJ N6REJ - edited - 5 Jul 2020
avatar N6REJ N6REJ - change - 5 Jul 2020
Labels Added: NPM Resource Changed ?
avatar N6REJ N6REJ - change - 5 Jul 2020
The description was changed
avatar N6REJ N6REJ - edited - 5 Jul 2020
avatar N6REJ
N6REJ - comment - 5 Jul 2020

@infograf768 do you think it would be better to use auto instead of static size?

avatar SharkyKZ
SharkyKZ - comment - 5 Jul 2020

Doesn't look like the right solution. The issue here is that icon-color-featured class is applied twice:

Untitled

avatar hans2103
hans2103 - comment - 5 Jul 2020

icon is set by:

<?php echo HTMLHelper::_('jgrid.isdefault', $item->home != '0', $i, 'styles.', $canChange && $item->home != '1'); ?>

jgrid.isdefault is a function from:

public static function isdefault($value, $i, $prefix = '', $enabled = true, $checkbox = 'cb', $formId = null, $active_class = 'icon-color-featured fas fa-star', $inactive_class = 'icon-color-unfeatured far fa-star')

and that one calls static::state from the same file:

public static function state($states, $value, $i, $prefix = '', $enabled = true, $translate = true, $checkbox = 'cb', $formId = null)

and that one calls static::action from the same file:

public static function action($i, $task, $prefix = '', $active_title = '', $inactive_title = '', $tip = false, $active_class = '',

In that last function the magic happens.
the $active_class is set to both the anchor as the span inside that anchor.
$active_class="icon-color-featured fas fa-star"

I agree with @SharkyKZ that css is not the right solution. Changing the variables in the PHP should do the trick.
@N6REJ can you do that?

avatar N6REJ
N6REJ - comment - 5 Jul 2020

@hans2103 not sure what should change. Would you mind making a pr for that? Or correcting this pr?

avatar N6REJ
N6REJ - comment - 5 Jul 2020

@SharkyKZ the css fix was needed because they used different px sizing. When elaine did the whole color-featured thing I thought it was weird but she's the design person not me.
And of course the fa- should match icon- which it didn't.

avatar adj9
adj9 - comment - 11 Jul 2020

I haven't tried npm, but with only PR application the stars aren't cheered.
With the inspection of HTML you have this code
Schermata 2020-07-11 alle 12 42 50

The first tag open is from the yellow star and the other is from the grey star.

avatar joomla-cms-bot joomla-cms-bot - change - 14 Jul 2020
Category Administration Templates (admin) NPM Change Repository Administration Templates (admin) NPM Change Repository Libraries
avatar N6REJ
N6REJ - comment - 14 Jul 2020

@Quy @hans2103 @SharkyKZ Thanks for the fixes.. Got it all squared away now.

avatar Quy
Quy - comment - 14 Jul 2020

Please fix.

29983

avatar N6REJ
N6REJ - comment - 15 Jul 2020

Please fix.

what in the world!!!!!!

avatar hans2103
hans2103 - comment - 15 Jul 2020

I can reproduce the issue.

before applying PR

and running npm build:css
Schermafdruk 2020-07-15 19 53 12

after applying PR

and running npm build:css
Schermafdruk 2020-07-15 19 54 43

avatar hans2103
hans2103 - comment - 15 Jul 2020

@N6REJ your suggested changes to fix styling on the default star have some negative effect on the styling of all icons on the website so it seems. :-)
Back to the drawing table I guess

avatar N6REJ
N6REJ - comment - 15 Jul 2020

@N6REJ your suggested changes to fix styling on the default star have some negative effect on the styling of all icons on the website so it seems. :-)
Back to the drawing table I guess

thats what I'm looking @.. it's doing it even in 4.0-dev branch on my end but I'm going to test things more carefully

avatar N6REJ
N6REJ - comment - 15 Jul 2020

not my bug ?
running composer install then npm ci on fresh pull of 4.0-dev fixed it.

avatar N6REJ
N6REJ - comment - 15 Jul 2020

as you can see all the broken icons were changed recently..
image

avatar hans2103
hans2103 - comment - 16 Jul 2020

@N6REJ then please merge most recent changes of branch 4.0 dev into your pull request and check again.

avatar N6REJ
N6REJ - comment - 16 Jul 2020

@hans2103 exactly what I did, as I explained. Here you can see that I've done so.

https://youtu.be/j-4Rqk2UQhs
Pushed AFTER this video cause I forgot to during it.

avatar hans2103
hans2103 - comment - 20 Jul 2020

@N6REJ please point me where you run npm build:css after applying your changes.
See my video where I run npm build:css both before and after applying your changes
https://www.youtube.com/watch?v=BB6NEX06n_k

avatar N6REJ
N6REJ - comment - 21 Jul 2020

@hans2103 I don't.. I ran npm ci !
Nice trick with storm & npm module on left. How'd you get a npm module like that?
I'm going to try a pre-built package and see if that works or not. I'm also going to do my best to find out exactly why PT isn't working.
I haven't tried it with PT.

avatar N6REJ
N6REJ - comment - 21 Jul 2020

@hans2103 idk whats wrong with my local system but I can confirm that my pr is currently broken using the pre-built.
what I don't understand is why it works fine locally.
I've got storm set to the pr branch
image
and you can see its fine...
image
Here's my install..
https://hallhome.us/joomla-cms.zip
@richard67 @roland-d any clue whats going on?
back to the drawing board for me... sigh

avatar hans2103
hans2103 - comment - 21 Jul 2020

Nice trick with storm & npm module on left. How'd you get a npm module like that?

PHP Storm > right mouse click on file package.json and select option "Show NPM Scripts"

avatar N6REJ N6REJ - change - 21 Jul 2020
Title
29957 css
[4.0] [DRAFT] 29957 css
avatar N6REJ N6REJ - edited - 21 Jul 2020
avatar N6REJ N6REJ - change - 22 Jul 2020
Title
[4.0] [DRAFT] 29957 css
[4.0] 29957 css
avatar N6REJ N6REJ - edited - 22 Jul 2020
avatar N6REJ
N6REJ - comment - 22 Jul 2020

@Quy @hans2103 @richard67
I'm happy to report I FINALLY found the cause. I'm so sorry for having such a crappy pr.
I'll be much more careful in the future. I couldn't see the error on chrome but it was very clear in FF-Dev.

avatar Quy Quy - test_item - 23 Jul 2020 - Tested successfully
avatar Quy
Quy - comment - 23 Jul 2020

I have tested this item successfully on cc41d1e


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

avatar infograf768 infograf768 - test_item - 24 Jul 2020 - Tested successfully
avatar infograf768
infograf768 - comment - 24 Jul 2020

I have tested this item successfully on cc41d1e


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

avatar infograf768 infograf768 - change - 24 Jul 2020
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 24 Jul 2020

rtc


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

avatar infograf768 infograf768 - close - 24 Jul 2020
avatar infograf768 infograf768 - merge - 24 Jul 2020
avatar infograf768 infograf768 - change - 24 Jul 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-07-24 07:13:50
Closed_By infograf768
Labels Added: ?
avatar infograf768
infograf768 - comment - 24 Jul 2020

Tks.

Add a Comment

Login with GitHub to post a comment