Clay: Add icon-desktop

Created on 6 May 2020  路  10Comments  路  Source: liferay/clay

Hi guys!
I am working on LEXI-882 to include _icon-desktop_ in Clay.
Screenshot 2020-05-06 at 09 16 39
Checking the icons in Clay, I have found another icon called desktop.
Screenshot 2020-05-06 at 09 20 48
This icon is called _display-content_ in Lexicon.
Screenshot 2020-05-06 at 09 24 16
Do you know if the desktop icon in Clay is in use? I would like to know that, to decide if we need to deprecate that icon or to change its name to add the new desktop icon.

3.x clay-css enhancement

Most helpful comment

Hahaha... @pat270! I actually saw @laugardie agree with you, so go for it!!

All 10 comments

I have just found this icon being used in Portal: Control Panel > System Settings. I will leave this ticket open and I will update it with the SVG and all the info today so we can update and add the icons.

I will update the title of the issue to Add icon-desktop.
We will need to:

  1. Change the icon-desktop name in Clay to icon-display-content so it matches the Lexicon library.
    Screenshot 2020-05-06 at 10 39 26
  1. Add new icon: desktop to Clay. Find the .SVG in LEXI-882
    Screenshot 2020-05-06 at 10 43 08
    Thanks! :)

In Lexicon CSS (1.x), the desktop icon is 1 x-desktop. In 2.x, it was changed to what it is now. In 3.x, we are trying to revert it back. Is it possible for Lexicon to name the desktop icon something else like icon-display?

Hey @pat270, you are right and it shouldn't have been changed before in previous versions. But as both icons are going to coexist, in this case, I think that we need to be cautious with the naming. As names are chosen to clearly represent what icons are to simplify use. Using icon-display for the desktop icon and icon-desktop for the one that represents display content can be confusing. As this is not going to cause a breaking change becuase the class that is already in use is going to stay in use but with a different icon, we should reconsider naming the icons properly to avoid future mistakes.
My suggestions are:
Screenshot 2020-05-08 at 10 13 35

@laugardie I was thinking about having 3 icons:
1 x-desktop icon-display
icon-display-content icon-display-content
icon-display-content icon-desktop (deprecate)

That seems ok for us @pat270

I'd say we can simply change this to @laugardie suggestion in 3.x and let the other branches as they are.

In DXP, the desktop icon is only used to display display-content:

private static final String _CATEGORY_ICON = "desktop";

private static final String _CATEGORY_KEY = "display-content";

So, maybe the first proposal makes even more sense... but I'm fine with whatever you agree on.

Really hope those metaphors are more stable from now on 馃槀

I'm trusting @jbalsas on this one.
I'm going with https://github.com/liferay/clay/issues/3200#issuecomment-625854202.

desktop display
display-content display-content
desktop (deprecated)

Hahaha... @pat270! I actually saw @laugardie agree with you, so go for it!!

Or talk it through, there's likely no rush to get this in one day earlier. Both options are fine by me!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bryceosterhaus picture bryceosterhaus  路  4Comments

drakonux picture drakonux  路  4Comments

hold-shift picture hold-shift  路  3Comments

dgarciasarai picture dgarciasarai  路  3Comments

drakonux picture drakonux  路  4Comments