You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like an arrow/chevron to be shown so that it is clearer to the user that the flag is actually a button revealing a dropwdown.
I sketched a solution where the consumer can set a renderIcon prop, which is of shape
(isFlagsMenuOpened: boolean)=>React.ReactNode
But it would need a little thinking and tweaking on the button styles, because the Icon enlarges the button area, which looks weird depending on the size of the Icon. This is how it looks for a (dummy-)Icon:
After using and deploying this component. I have found that a lot of people don't realise that the country code box is a button for a dropdown. It resulted in them to just use the default country code.
Heya, props for the lib.
I would like an arrow/chevron to be shown so that it is clearer to the user that the flag is actually a button revealing a dropwdown.
I sketched a solution where the consumer can set a
renderIcon
prop, which is of shapeBut it would need a little thinking and tweaking on the button styles, because the Icon enlarges the button area, which looks weird depending on the size of the Icon. This is how it looks for a (dummy-)Icon:
@viclafouch Do you see a better way to achieve the desired behavior?
Shall I raise a PR so that the first solution can be discussed?
The text was updated successfully, but these errors were encountered: