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

Border Bleed with .buttonset() #51

Open
FreddieWitherden opened this issue Jul 14, 2012 · 1 comment
Open

Border Bleed with .buttonset() #51

FreddieWitherden opened this issue Jul 14, 2012 · 1 comment

Comments

@FreddieWitherden
Copy link

Consider

<div id="radio">
    <input type="radio" id="radio1" name="radio" /><label for="radio1">Choice 1</label>
    <input type="radio" id="radio2" name="radio" checked="checked" /><label for="radio2">Choice 2</label>
    <input type="radio" id="radio3" name="radio" disabled="disabled"/><label for="radio3">Choice 3</label>
</div>

with a .buttonset() being placed on #radio. The border-left of the rightmost (disabled) radio button bleeds over the second (middle) radio button.

@FreddieWitherden
Copy link
Author

A closely related issue to this is that buttons in a .buttonset with an adjacent button to the right (such as Choice 1 and Choice 2 in the above example) are not centre aligned. They have 14px of left padding but only 10px of right padding. This is due to the adjacent button shifting itself by -4px causing it to cover 4px of the previous button. This shift is also responsible for the rouge overlapping border.

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

1 participant