Skip to content

Vertically Centering An Icon and Code Review #2978

Discussion options

You must be logged in to vote

Hi @uditadhikari117! I don't seem to have the same settings available in global protect, but I realize now that you provided your code in the first post, so I think that should be enough for us to discuss.

Firstly, I see that you included a className in your component implementation. Paste components don't allow classes, since our design system has specific uses of properties and design tokens. If you were able to affect a component with a class, that is a bug and we'd like to know so we can fix it! Our component APIs are designed to be flexible enough for common use cases, and our primitives have the most style flexibility while still using our tokens. More information about why we do no…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@uditadhikari117
Comment options

@gloriliale
Comment options

@uditadhikari117
Comment options

@gloriliale
Comment options

@uditadhikari117
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by gloriliale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants