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

Radio button's focus state is truncated when in a container with a hidden overflow #7113

Closed
1 of 2 tasks
elomt opened this issue Oct 22, 2020 · 0 comments · Fixed by #7133 or #7886
Closed
1 of 2 tasks

Radio button's focus state is truncated when in a container with a hidden overflow #7113

elomt opened this issue Oct 22, 2020 · 0 comments · Fixed by #7133 or #7886

Comments

@elomt
Copy link

elomt commented Oct 22, 2020

What package(s) are you using?

  • carbon-components
  • carbon-components-react

Detailed description

Describe in detail the issue you're having.
When a radio button is used inside a container with a hidden or auto overflow set, the box-shadow used to show the focused state of the radio button is truncated

Is this issue related to a specific component?
Radio button

What did you expect to happen? What happened instead? What would you like to
see changed?
Provide some padding around the control to account for the focus state's box-shadow

What browser are you working in?
Chrome

What version of the Carbon Design System are you using?
latest

What offering/product do you work on? Any pressing ship or release dates we
should be aware of?

Steps to reproduce the issue

  1. Go to https://codesandbox.io/s/damp-grass-kjx1w?file=/index.js
  2. Select the radio button to show a focused state
  3. Observe that the box-shadow around the radio button is cut off below and on the left

Please create a reduced test case in CodeSandbox
https://codesandbox.io/s/damp-grass-kjx1w?file=/index.js

Additional information

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