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

feat(progress-indicator): update to use carbon icons #5122

Merged

Conversation

annawen1
Copy link
Member

@annawen1 annawen1 commented Jan 21, 2020

Closes #5086

Updates the <ProgressIndicator /> to pull icons from the carbon icons package instead of hardcoding the svg paths. Used the <RadioButton16 /> and <RadioButtonChecked16 /> icons - I didn't notice any filled circle icons so I had to style the <RadioButtonChecked16 /> stroke.

Screen Shot 2020-01-21 at 1 33 44 PM

Changelog

New

  • import <RadioButtonChecked16 /> for current progress step icon and <RadioButton16 /> for complete and disabled progress step icons

Changed

  • removed the 14px width and height styling for the current icon svg, doesn't match the other icons
  • adjust the <RadioButtonChecked16 /> to produce the filled circle we need for complete-progress-step icon

Testing / Reviewing

Testing should ensure <ProgressIndicator /> is consistent with designs

@netlify
Copy link

netlify bot commented Jan 21, 2020

Deploy preview for the-carbon-components ready!

Built with commit 0907c5a

https://deploy-preview-5122--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented Jan 21, 2020

Deploy preview for carbon-elements ready!

Built with commit 0907c5a

https://deploy-preview-5122--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Jan 21, 2020

Deploy preview for carbon-components-react failed.

Built with commit 0907c5a

https://app.netlify.com/sites/carbon-components-react/deploys/5e304132797c22000ae909d4

Copy link
Collaborator

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Wondering if we should update the vanilla .hbs files with the correct SVG assets as well.

fill: $interactive-01;
margin-top: rem(9.5px);

path:last-of-type {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious, what is this selector being used for? 👀

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like it is being used to fill in the circle by increasing the width of the checked circle

Copy link
Member Author

@annawen1 annawen1 Jan 21, 2020

Choose a reason for hiding this comment

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

yeah...I couldn't find a Filled Circle Icon in the carbon/icon library...so I'm improvised 😅

should I try to get a filled circle icon in the icon package instead?

Copy link
Contributor

Choose a reason for hiding this comment

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

should I try to get a filled circle icon in the icon package instead?

👍

Copy link
Contributor

Choose a reason for hiding this comment

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

cc @laurenmrice do you know of an icon we could use or will this work as is? 👀

Copy link
Member

@laurenmrice laurenmrice Jan 22, 2020

Choose a reason for hiding this comment

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

Yeah we do not have a filled circle icon. I think we can do this for now and I can talk with conrad about possibly adding one to our library for the future. @joshblack

@abbeyhrt
Copy link
Contributor

@annawen1 thank you for doing this! I might be wrong but it seems like the filled blue circe looks a tiny bit bigger than the one we have right now

@tw15egan
Copy link
Collaborator

@abbeyhrt I think that's because the current one is an incorrect 14px, and the rest are 16px.

@laurenmrice
Copy link
Member

laurenmrice commented Jan 22, 2020

Wait a minute we do have a dot mark icon!! We could use this for the current state https://carbon-elements.netlify.com/icons/examples/preview/#32%2Fdot-mark%20(Downsized%20to%2016)

@abbeyhrt
Copy link
Contributor

@tw15egan makes sense!

@annawen1
Copy link
Member Author

https://carbon-elements.netlify.com/icons/examples/preview/#32%2Fdot-mark%20(Downsized%20to%2016)

@laurenmrice the dotmark icon doesn't take up the entire svg, there's some white space around it. Is there anyway to change this?

@tw15egan
Copy link
Collaborator

@laurenmrice @annawen1 I also tried using that icon when I tested this PR, but yeah it is sized smaller than the other 16px icons (makes sense, since it is a dot mark). We would need a full 16px circle

@laurenmrice
Copy link
Member

Ahh okay I see. Alright I will still talk to Conrad about this to see the reason behind the dot mark size and if he can adjust that one to match the other circular icons, or if we need to make a separate icon.

@laurenmrice
Copy link
Member

laurenmrice commented Jan 23, 2020

Update on filled icon for current state: Conrad is going to make a circle--filled icon and it will be in the repo in the next couple of weeks, so we can update it then in a separate pr.

@annawen1
Copy link
Member Author

@laurenmrice awesome!

@asudoh
Copy link
Contributor

asudoh commented Jan 23, 2020

@laurenmrice Does this mean this PR itself is good to go...? Thanks!

@tw15egan
Copy link
Collaborator

@laurenmrice is this good to merge?

Copy link
Member

@laurenmrice laurenmrice left a comment

Choose a reason for hiding this comment

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

Can you double check that the filled icon is 16 like the rest of them, i know it currently is not an actual icon but just making sure its still the right size. It does still seem to be a little larger.

Screen Shot 2020-01-27 at 11 53 32 AM

The rest of the icons look good

@annawen1
Copy link
Member Author

annawen1 commented Jan 28, 2020

@laurenmrice

I removed the margin-top that was being set on the completed icon, looks closer in size now
Screen Shot 2020-01-28 at 9 29 54 AM

Copy link
Member

@laurenmrice laurenmrice left a comment

Choose a reason for hiding this comment

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

lgtm thank you ! 🙌🏻

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.

[Progress indicator]: Add viewBox attr to svg to allow scaling
6 participants