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

USWDS - Radio Button - radio shows unchecked when disabled even when checked #4063

Closed
wants to merge 5 commits into from
Closed

Conversation

ghost
Copy link

@ghost ghost commented Mar 2, 2021

Fix for #3979

Description

When a radio input was disabled but also had the checked attribute there was no visual indicator of this combination of states. This PR adds styling to "fill-in" the radio input as if it were checked while also showing other styling indicating it's disabled state. Also adds examples on the radio input component of this :disabled:checked state, including an .usa-radio__input--tile variant example.

@mejiaj mejiaj self-requested a review March 3, 2021 16:59
mejiaj
mejiaj previously requested changes Mar 3, 2021
Copy link
Contributor

@mejiaj mejiaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job! Just some minor comments

<input class="usa-radio__input usa-radio__input--tile" id="historical-marshall-2" type="radio" name="historical-figures" value="thurgood-marshall" disabled checked>
<label class="usa-radio__label" for="historical-marshall-2">Thurgood Marshall</label>
</div>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix indent and remove extra line on 24.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeffffeffff there is still an extra line on line 24

src/components/radio-buttons/radio-buttons--tile.njk Outdated Show resolved Hide resolved
@thisisdano thisisdano dismissed mejiaj’s stale review March 12, 2021 07:29

Issues addressed

@thisisdano
Copy link
Member

@mejiaj Sorry, I dismissed your review, prematurely determining it was stale. Yet it was not!

@mejiaj
Copy link
Contributor

mejiaj commented Apr 19, 2021

Closing in favor or more up-to-date PR.
#4160

@mejiaj mejiaj closed this Apr 19, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants