Skip to content

Add the Plone icon to @plone/icons - #410

Open
NopeCharon wants to merge 1 commit into
plone:mainfrom
NopeCharon:add-plone-icon
Open

NopeCharon wants to merge 1 commit into
plone:mainfrom
NopeCharon:add-plone-icon

Conversation

@NopeCharon

Copy link
Copy Markdown

Adds the Plone logo mark to @plone/icons, next to the existing VoltoIcon:

  • src/svg/plone.svg, the raw SVG.
  • src/icons/PloneIcon.tsx, the React component, exported from src/icons/index.ts. The Storybook gallery lists every export of src/icons, so it shows up there without further changes.
  • A feature news fragment.

The paths come from Volto's plone.svg. That file draws the mark on a 36×36 canvas with a margin, so the viewBox is cropped to 3 3 31 31 (centered on the circle) to make the mark fill the 24×24 box like the other icons. No fill is set, so it follows currentColor.

I did not add a unit test: the package doesn't test individual icons, and the gallery renders every export. CI runs the package checks.

I didn't add an Aurora logo icon, since the issue only asked about it as a question.

Closes #407

The icon gallery had a VoltoIcon but no icon for Plone itself. Add the
Plone logo mark as a raw SVG (src/svg/plone.svg) and as a React component
(PloneIcon), exported from src/icons/index.ts so it also shows up in the
Storybook gallery.

The paths come from the Volto icon set, where the mark is drawn on a 36x36
canvas with a 4px margin. The viewBox is cropped to "3 3 31 31" (centered on
the circle) so the mark fills the 24x24 box like the other Quanta icons
instead of rendering small. No fill is set, so the icon inherits
currentColor like the rest of the set.

Closes plone#407

Signed-off-by: NopeCharon <115794254+NopeCharon@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add plone.svg to plone/icons

1 participant