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

Select size="sm" not keeping original borderRadius #8307

Open
1 of 3 tasks
vitalijalbu opened this issue Feb 22, 2024 · 1 comment
Open
1 of 3 tasks

Select size="sm" not keeping original borderRadius #8307

vitalijalbu opened this issue Feb 22, 2024 · 1 comment

Comments

@vitalijalbu
Copy link

Description

No theme applied;
As you can see buttons have bigger border-radius that select component (both setted to size="sm")

Screenshot 2024-02-22 alle 14 26 11

Link to Reproduction

no needed

Steps to reproduce

  1. Create a sm button
  2. Create a sm select
  3. See different border radius

Chakra UI Version

latest

Browser

No response

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

@TylerAPfledderer
Copy link
Collaborator

Hey @vitalijalbu!

If you are just using the default theme config, this is expected as the default design choices are on a component-by-component basis.

You can see in the button theme that it has a border radius of md defined only in the base style.

And the border radius for the sm size of the select comes from the input theme, define as sm.

Reference in the select theme

Declared in the input theme

You'll need to extend the theme to override the choice of border radius specifically for the sm size of the select component (and ultimately the input component), or vice versa with the button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants