Skip to content

[css-forms-1] Radio buttons inline alignment #13868

@sb3nder

Description

@sb3nder

Currently the styles for radio buttons don't provide a consistent alignment:

Image

https://codepen.io/sb3nder/pen/emBmOXo

One way to fix this could be removing :checked in:

input[type=radio]:checked::checkmark {
    background-color: currentColor;
    display: inline-block;
    border-radius: inherit;
    height: 100%;
    width: 100%;
}
Image

Note:

input[type=radio]:not(:checked)::checkmark {
    visibility: hidden;
}

cc @lukewarlow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions