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

Add icon name mapping to va-icon ESLint migration script #2791

Open
2 tasks
jamigibbs opened this issue May 1, 2024 · 2 comments
Open
2 tasks

Add icon name mapping to va-icon ESLint migration script #2791

jamigibbs opened this issue May 1, 2024 · 2 comments

Comments

@jamigibbs
Copy link
Contributor

jamigibbs commented May 1, 2024

Description

Now that we have the Font Awesome names mapped to a USWDS name, we'd like to update the ESLint migration script to automatically fill in the mapping name to the icon prop.

We might be able to do something similar to like what was done for mapping new utility classes.

References

Tasks

  • update the prefer-icon-component migration script so that the mapped USWDS icon name auto-populates

Acceptance Criteria

  • given a provided Font Awesome class name, the mapped USWDS icon name populates for the icon prop in the va-icon migration script
@caw310
Copy link
Contributor

caw310 commented May 1, 2024

@Andrew565
Copy link
Contributor

Previous (Font-awesome) and current (USWDS) icon names as found on the design.va.gov site are accessible in yml format here: https://github.com/department-of-veterans-affairs/vets-design-system-documentation/blob/2797f1d4310b81227f52489036324e085dbf6744/src/_data/icons.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants