-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Create Icon component #20133
Comments
cc @airbytehq/frontend |
@krishnaglick Reassigning this to you! |
@timroes What do you mean about color. Are just generic css color's fine? |
@krishnaglick I think we want to have a limited set of colors only available, like "primary", "subdued", or such. We'd need to actually check what colors we're at the moment using in our UI, and what colors we can break that down to. Might be worth syncing with Nico about which colors we'll need exactly. |
@krishnaglick @timroes - I did this list of colors used for icons https://www.figma.com/file/gMNRYVJav25pdsoxAyW7Qp/00_01_WEB-APP-LIBRARIES?node-id=2514%3A4578&t=2dhs2PhfGlCBSMY6-4 - do you want to plan a meeting to talk about it? |
Thanks for the list. Is there a chance that we can narrow down the amount of grey shades a bit for colors we want to use in the future? It looks like we might not need that amount of slightly different shaded greys? |
@timroes yes sure! I'll do that, just need to check different screens before reducing this list |
These icons are used in designs by @Upmitt , they should be available in the webapp as well: https://www.figma.com/file/gMNRYVJav25pdsoxAyW7Qp/00_01_WEB-APP-LIBRARIES?node-id=2%3A394&t=p4l9lbH6hV6iquOX-0 |
My current color shortlist is |
Can I suggest that we only use semantic names, not names of colors ( IMO |
Bump @Upmitt This is lower priority than what you're busy with but just want to keep this on your radar! |
@krishnaglick any update on this component? Would be great to get it built asap, because it is a building block for some other UI library components. |
Spoke with @chandlerprall, he will take over this |
@chandlerprall are we able to close this issue now? Looking at https://github.com/airbytehq/airbyte-platform-internal/pull/7709/files |
This is also tracking other icon component issues - tasks in the description. I don't have a preference if we want to keep this around as a meta issue or close it. Feels more like Tim's brain child for icon asks, so maybe wait for him to get back and see what a preference may be? |
Closing as we have a solid Icon component by now. |
We would like to use more custom SVG icons over just using Font Awesome. We should create a custom
Icon
component that aligns handling those icons. At the moment we're just exporting custom React components for each of them, which all come with a bit different behavior (regarding size, how we handle colors, etc.).I think the new icon component should do the following:
<Icon type="caret" />
<Icon size="md" />
to match our regular icon sizes we have (and align them.text
for usingcurrentColor
.className
as we should for all base UI components.That could allow us to manage the actual icons even in pure
svg
files if we want. We could consider loading all icons in one svg once only on the page and referencing them viasymbol
anduse
so we don't need to duplicate the icon SVG if we have an icon used multiple times on the same page.Tasks
The text was updated successfully, but these errors were encountered: