Skip to content
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

Provide icon exports #2137

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Provide icon exports #2137

merged 1 commit into from
Dec 18, 2024

Conversation

wpears
Copy link
Member

@wpears wpears commented Dec 16, 2024

One piece of fallout from 005bce9 is that the way code is imported by dependent js is actually quite different. With an exports key provided, only those exports are allowed rather than falling back to walking the filesystem (which we do a bunch in cf.gov).

This provides an icons export so that icons can be imported into js (which will need to be updated in dependent projects, namely cfgov, from existing @cfpb/cfpb-design-system/src/components/cfpb-icons/icons/<icon.svg> style imports. I'll do this for cfgov once this PR is merged and a release created (along with changes to js imports which 005bce9 also requires).

Copy link

netlify bot commented Dec 16, 2024

Thanks for the improvements! Browse a preview of your changes using the link below.

Name Link
🔨 Latest commit 9eccdc4
🔍 Latest deploy log https://app.netlify.com/sites/cfpb-design-system/deploys/6760896078fec300082ad6bb
😎 Deploy Preview https://deploy-preview-2137--cfpb-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@wpears wpears merged commit 328762e into main Dec 18, 2024
8 checks passed
@wpears wpears deleted the icon-exports branch December 18, 2024 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants