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

fix(components): update Icon component to support a svg that has multiple paths #16468

Closed
wants to merge 12 commits into from

Conversation

koji
Copy link
Contributor

@koji koji commented Oct 11, 2024

Overview

update Icon to support a svg that has multiple paths
update icon data types.
add aria-roledescription to Icon and it makes it easy to test whether an icon exists or not.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-roledescription

Ideally, I should check all icons but unfortunately, we don't have a Figma page that has all icons now.
So I just modify some icons that looked different from the edge.

close AUTH-901 AUTH-922

Test Plan and Hands on Testing

check this pr's icon list is the same as edge's icon list

this pr
https://s3-us-west-2.amazonaws.com/opentrons-components/feat_update-icon-to-support-multiple-paths/index.html?path=/docs/library-atoms-iconlist--docs

edge
https://s3-us-west-2.amazonaws.com/opentrons-components/edge/index.html?path=/docs/library-atoms-iconlist--docs

Changelog

  • update Icon component
  • update icon-data.ts

Review requests

If you have any better idea, please let me know.

Risk assessment

mid because all projects use Icon component

@koji
Copy link
Contributor Author

koji commented Oct 11, 2024

  • compare this pr and edge

@koji koji requested a review from mmencarelli October 11, 2024 20:08
@koji koji marked this pull request as ready for review October 11, 2024 20:23
@koji koji requested a review from a team as a code owner October 11, 2024 20:23
@koji
Copy link
Contributor Author

koji commented Oct 11, 2024

  • fix app test error

@koji koji changed the title fix(components): update Icon to support a svg that has multiple paths fix(components): update Icon component to support a svg that has multiple paths Oct 11, 2024
@koji koji removed the request for review from a team October 17, 2024 17:10
@koji koji marked this pull request as draft October 18, 2024 10:57
@koji
Copy link
Contributor Author

koji commented Oct 18, 2024

close this sicne Mel provided new svgs for new icons

@koji koji closed this Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant