Closed elomt closed 3 years ago
I don't think we want to include space around every component to account for focus outline, this would result in a 1px shift misalignment for every toggle, regardless of focus state or not. This is especially true considering the predominant state of the toggle is unfocused.
In the example given, it appears as though there's an inner container (with overflow hidden), and an outer container (with 1rem of padding). My suggestion would be to move the padding to the container with overflow hidden, so that the toggle components outline isn't cut off.
Going to close this one out based on the above comment from @vpicone. Feel free to comment and we can re-open!
What package(s) are you using?
carbon-components
carbon-components-react
Detailed description
Additional information