Skip to content

Is there a way to support larger Size properties? #101

Answered by csandman
irwinarruda asked this question in Q&A
Discussion options

You must be logged in to vote

The issue with this is that the sizes don't only apply to the main Control component, (the one that's styled like the chakra Input), it also maps sizes of other components such as the Tag, Spinner, Menu group title, and I think one or two more. And they're also not mapped directly in all cases, for example I'm downsizing the spinner by one size based on the input value:

const spinnerSizes = {
  sm: "xs",
  md: "sm",
  lg: "md",
};

Besides that, a lot of the other custom styles that are applied to each of the non-standard components are mapped from the three size options I'm offering, as there's no equivalent for them in the Chakra theme.

If you want to add options for other sizes, the onl…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by csandman
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Won't Fix This will not be worked on Workaround A workaround exists
2 participants
Converted from issue

This discussion was converted from issue #44 on May 05, 2022 19:25.