Skip to content

chore: remove & rename icons #1696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 19, 2024
Merged

chore: remove & rename icons #1696

merged 5 commits into from
Apr 19, 2024

Conversation

joshuaellis
Copy link
Contributor

What does it do?

  • re-exports the new icon set from figma
  • separates symbols from icons (the former is not supposed to be re-colored)
  • gives icon's a better template so we can apply fill & stroke with theme colors directly on them
  • sets the default fill of an icon to currentColor
  • removes the Icon component
  • adds AccessibleIcon utility component
  • adds documentation for new things
  • fixes storybook TS

How to test it?

  • I dont think there's much value in going through the icons, i'd focus on reviewing the other files that have been changed imo.

Related issue(s)/PR(s)

  • resolves DX-1200

@joshuaellis joshuaellis added pr: chore This PR contains chore tasks (cleanups, configs, tooling...) flag: 💥 Breaking change This PR contains breaking changes and should not be merged source: icons relates to icons package labels Apr 18, 2024
@joshuaellis joshuaellis self-assigned this Apr 18, 2024
Copy link

changeset-bot bot commented Apr 18, 2024

🦋 Changeset detected

Latest commit: 2615b1c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@strapi/icons Major
@strapi/design-system Major
@strapi/ui-primitives Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Apr 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
design-system ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 19, 2024 10:16am
design-system-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 19, 2024 10:16am

Comment on lines +1 to +5
import { Title, Meta } from '@storybook/blocks';

<Meta title="Primitives/Overview" parameters={{ viewMode: 'docs' }} />

<Title>Overview</Title>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need these files?

docs/stories/primitives/overview.mdx
docs/stories/foundations/overview.mdx

We end up with empty overview pages in storybook which looks a bit strange

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm gonna keep them for now, the storybook in v2 is very much a WIP, we have tickets to amend this sort of stuff, but it's there to start building the shape we want 💪🏼

@@ -0,0 +1,95 @@
import { Typography, lightTheme } from '@strapi/design-system';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! these new pages will be so useful

@joshuaellis joshuaellis merged commit 1622c2b into releases/2.0.0 Apr 19, 2024
@joshuaellis joshuaellis deleted the chore/update-icons branch April 19, 2024 11:53
@madhurisandbhor
Copy link
Contributor

Screenshot 2024-04-22 at 09 55 57 this looks incorrect with new changes, needs width, height mentioned?

@joshuaellis
Copy link
Contributor Author

Screenshot 2024-04-22 at 09 55 57 this looks incorrect with new changes, needs width, height mentioned?

let's write a bug in JIRA! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flag: 💥 Breaking change This PR contains breaking changes and should not be merged pr: chore This PR contains chore tasks (cleanups, configs, tooling...) source: icons relates to icons package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC]: Support common theme colors for CTB icons in the Icon component [feat]: Come with an API to style SVGs [bug]: SVG theming API bug
3 participants