grommet-icons icon indicating copy to clipboard operation
grommet-icons copied to clipboard

Grommet Icon site renders certain icons as filled

Open taysea opened this issue 2 years ago • 7 comments

Gromemt icon site is rendering certain icons as filled (which would be regressions on how the icons should render). However, I'm not seeing that issue on Design System site (which pulls in the stable branch of grommet icons).

site: Screen Shot 2022-06-28 at 2 30 59 PM

design system site: Screen Shot 2022-06-28 at 2 31 20 PM

taysea avatar Jun 28 '22 21:06 taysea

<CircleAlert /> was another I ran into. It rendered properly in Codesandbox using most recent release (i.e. not stable), so potentially related to the Icons site?

A quick glance looks like it is affecting several dozens of icons.

halocline avatar Jun 28 '22 22:06 halocline

Agreed that it feels potentially isolated to icons site.

taysea avatar Jun 28 '22 22:06 taysea

related issue: https://github.com/grommet/grommet-icons/issues/253

jcfilben avatar Jun 28 '22 22:06 jcfilben

I attempted to upgrade the yarn.lock on grommet-icons-site locally to ensure that it was fetching that latest versions of grommet stable and grommet-icons stable but the issue is still persisting

jcfilben avatar Jun 28 '22 22:06 jcfilben

The problem is that when some icons have color='plain' they become filled in. On grommet site we are setting all the icons to have color='plain'. See codesandbox: https://codesandbox.io/s/grommet-v2-template-forked-qm322x?file=/index.js

jcfilben avatar Jun 29 '22 19:06 jcfilben

@jcfilben Some 'status' icons (https://icons.grommet.io/?s=status) are filled even with no color="plain" prop passed. See https://codesandbox.io/s/grommet-v2-template-forked-ifqwhq?file=/index.js. The example of impact are icons inside the toast notifications: https://design-system.hpe.design/templates/toast-notifications?q=toast

mshepel avatar Aug 16 '22 14:08 mshepel

Hi @mshepel so when using the small version of status icons, these are intentionally filled. So I think the behavior shown in the codesandbox and notifications page is correct. See the 'Filled' section on the icons figma file for more info https://www.figma.com/file/G99KGffGLFKICy8xRs51lW/HPE-Icons?node-id=582%3A6

jcfilben avatar Aug 16 '22 14:08 jcfilben