cfpb / design-manual

⚠️ THIS REPO IS DEPRECATED ⚠️ A set of design principles and standards for the Consumer Financial Protection Bureau.
https://cfpb.github.io/design-manual/
Creative Commons Zero v1.0 Universal
98 stars 71 forks source link

Border on checkboxes/radio buttons appears on outside #451

Open anselmbradford opened 7 years ago

anselmbradford commented 7 years ago

The border on large contact area selected radio buttons/checkboxes appears on the outside of the button's dimensions, meaning they increase in size by 4 pixels in width and height (seen here). This looks off when there's a group of buttons because the left and right edges do not line up with unselected buttons in the group. I propose the selected state should be kept at the same width/height of the button. I have code for that in https://github.com/cfpb/capital-framework/pull/424