? ? Pending

User tests: Successful: Unsuccessful:

avatar coolcat-creations
coolcat-creations
9 May 2020

Pull Request for Issue #28976

Summary of Changes

Changed the Default Icon in Menus to a home icon. If it has to be called home or default could be discussed in another issue. This PR makes a difference between the featured - action and the set menu item as default action. It also adds the possibility to pass the active and inactive iconclass suffix to the isDefault method.

Testing Instructions

apply patch
see if the home Icon on monolingual sites is now a home icon
the non-default items are for now a simple circle
on a multilingual website the home icon should be still a flag like before.

Expected result

grafik

Sidebar:
grafik

Actual result

grafik

avatar coolcat-creations coolcat-creations - open - 9 May 2020
avatar coolcat-creations coolcat-creations - change - 9 May 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 May 2020
Category Administration com_menus Libraries
avatar coolcat-creations coolcat-creations - change - 9 May 2020
Title
Change Featured Icon to Home Icon in com_menu
[4.0] com_menu - Change Featured Icon to Home Icon in
avatar coolcat-creations coolcat-creations - edited - 9 May 2020
avatar coolcat-creations coolcat-creations - change - 9 May 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 9 May 2020
Category Administration com_menus Libraries Administration com_menus Templates (admin) Libraries
avatar coolcat-creations coolcat-creations - change - 9 May 2020
The description was changed
avatar coolcat-creations coolcat-creations - edited - 9 May 2020
avatar joomla-cms-bot joomla-cms-bot - change - 9 May 2020
Category Administration com_menus Libraries Templates (admin) Administration com_menus Modules Templates (admin) Libraries
avatar coolcat-creations coolcat-creations - change - 9 May 2020
The description was changed
avatar coolcat-creations coolcat-creations - edited - 9 May 2020
avatar infograf768
infograf768 - comment - 10 May 2020

Remark 1:

Size of icon is very different between sidemenu and Menu dasboard. Menu dashboard is better imho.
Screen Shot 2020-05-10 at 07 37 08

Remark 2:
Density of Yellow is very different between the featured star (for articles manager) and Home icon set to All languages in menu items manager. Articles manager star density is better imho.

Screen Shot 2020-05-10 at 07 41 57

Screen Shot 2020-05-10 at 07 43 33

The same colour is applied

color: var(--warning);
border-color: var(--warning);

The issue comes from

.disabled {
    opacity: .4;
}

These "issues" are unrelated to this patch but it would be good to solve them at the same time.

avatar coolcat-creations
coolcat-creations - comment - 10 May 2020

Yes, this PR is only about to change the type of the icon, not the color or size - for color we would need another class in the table header and for sizes it’s also not bound to only the home icon but the general interface. see later comment :-)

avatar adj9 adj9 - test_item - 10 May 2020 - Tested successfully
avatar adj9
adj9 - comment - 10 May 2020

I have tested this item successfully on 109a7b2

Apply the PR and I've change the icon for menu.
I've do an article in person lang and see the icon should
image


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29016.
avatar coolcat-creations
coolcat-creations - comment - 10 May 2020

I have tested this item successfully on 109a7b2

Apply the PR and I've change the icon for menu.
I've do an article in person lang and see the icon should
image
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29016.

Thank you!

avatar coolcat-creations
coolcat-creations - comment - 10 May 2020

@adj9 @infograf768 I added the styling for the home item to not have the disabled class and added a "not-allowed" cursor. Can you retest?
For the icon sizes I think a separate PR would be better.

avatar infograf768
infograf768 - comment - 10 May 2020

will do tomorrow.

avatar infograf768 infograf768 - test_item - 10 May 2020 - Tested successfully
avatar infograf768
infograf768 - comment - 10 May 2020

I have tested this item successfully on 38bc020


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

avatar infograf768
infograf768 - comment - 11 May 2020

@coolcat-creations

I suggest you also add a few lines above

  &.featured-disabled {
    opacity: 1;
  }

as this will now also solve density in Installed Languages and Template Styles for the default star colour.

avatar N6REJ
N6REJ - comment - 11 May 2020

@coolcat-creations

  &.disabled .icon-home {
    color: $state-warning-bg;
    border-color: $state-warning-bg;
  }

should be

&.disabled .fas.fa-home,
  &.disabled .icon-home {
    color: $state-warning-bg;
    border-color: $state-warning-bg;
  }

While below is preferred, I understand for b/c reasons that may not be possible at this time.

  &.disabled .fas.fa-home {
    color: $state-warning-bg;
    border-color: $state-warning-bg;
  }
avatar coolcat-creations
coolcat-creations - comment - 12 May 2020

@N6REJ - I can't add code that is not applying yet, you would need to add this into your PR after mine is merged or me after yours is merged, but not before both are merged.

avatar coolcat-creations
coolcat-creations - comment - 12 May 2020

&.featured-disabled {
opacity: 1;
}

@infograf768 - May I create a seperate PR for that? I prefer not to mix up too much in case something needs to be looked up later or reverted.

avatar infograf768
infograf768 - comment - 12 May 2020

@infograf768 - May I create a seperate PR for that? I prefer not to mix up too much in case something needs to be looked up later or reverted.

Sure, but don’t forget! ?

avatar infograf768 infograf768 - test_item - 12 May 2020 - Tested successfully
avatar infograf768
infograf768 - comment - 12 May 2020

I have tested this item successfully on 0838c6d


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

avatar Quy Quy - test_item - 12 May 2020 - Tested successfully
avatar Quy
Quy - comment - 12 May 2020

I have tested this item successfully on 0838c6d


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

avatar Quy Quy - change - 12 May 2020
Status Pending Ready to Commit
avatar Quy Quy - edited - 12 May 2020
avatar Quy
Quy - comment - 12 May 2020

RTC


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

avatar infograf768 infograf768 - change - 13 May 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-05-13 05:21:35
Closed_By infograf768
Labels Added: ?
avatar infograf768 infograf768 - close - 13 May 2020
avatar infograf768 infograf768 - merge - 13 May 2020
avatar infograf768
infograf768 - comment - 13 May 2020

Tks

avatar infograf768
infograf768 - comment - 13 May 2020

@coolcat-creations
Now you can make the PR for #29016 (comment) ;)

Add a Comment

Login with GitHub to post a comment