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 - Checkbox & Radio: Display state when disabled and checked. #4160

Merged

Conversation

mejiaj
Copy link
Contributor

@mejiaj mejiaj commented Apr 19, 2021

Description

Closes #3979. More up-to-date version of old PR #4063.

Additional information

How to test: Add checked to disabled radio & checkbox inputs.


Checkbox

image

image

Radio

image

image

Before you hit Submit, make sure you’ve done whichever of these applies to you:

  • Follow the 18F Front End Coding Style Guide and Accessibility Guide.
  • Run npm test and make sure the tests for the files you have changed have passed.
  • Run your code through HTML_CodeSniffer and make sure it’s error free.
  • Title your pull request using this format: [Website] - [UI component]: Brief statement describing what this pull request solves.

@mejiaj mejiaj marked this pull request as ready for review April 19, 2021 21:05
@mejiaj mejiaj requested a review from thisisdano April 19, 2021 21:05
@@ -13,7 +13,7 @@
<label class="usa-radio__label" for="historical-washington-2">Booker T. Washington</label>
</div>
<div class="usa-radio">
<input class="usa-radio__input usa-radio__input--tile" id="historical-carver-2" type="radio" name="historical-figures-2" value="george-washington-carver" disabled>
<label class="usa-radio__label" for="historical-carver-2">George Washington Carver</label>
<input class="usa-radio__input usa-radio__input--tile" id="historical-marshall-2" type="radio" name="historical-figures" value="thurgood-marshall" disabled>
Copy link
Member

Choose a reason for hiding this comment

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

Thank you for changing this as well

@thisisdano thisisdano merged commit 74ce3d0 into develop Apr 22, 2021
@thisisdano thisisdano deleted the je-radio-shows-unchecked-when-disabled-even-when-checked branch April 22, 2021 22:30
@thisisdano thisisdano mentioned this pull request Apr 27, 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.

Radio button does not show it is checked when it is also disabled
2 participants