Visitar URL original
USWDS - Bug: Prefix/suffix does not use disabled input styling · Issue #4913 · uswds/uswds · GitHub
Skip to content

USWDS - Bug: Prefix/suffix does not use disabled input styling #4913

Closed

Description

@patrickcate

Describe the bug

If an input has a prefix/suffix and the input is disabled, the disabled styling does not apply to the prefix/suffix. Disabled inputs have a light gray background, but the prefix/suffix's have a white background.

Steps to reproduce the bug

  1. Create a USWDS input with a prefix, suffix, or both.
  2. Add the disabled attribute to the USWDS input.
  3. The input will have a light gray background, but the prefix/suffix's will have a white background.

Expected Behavior

When an input is disabled, its styling is also applied to any prefix/suffix's on the input.

Related code

<form class="usa-form">
  <label class="usa-label" for="example-input-suffix">Weight, in pounds</label>
  <div class="usa-input-group usa-input-group--sm">
    <input
      id="example-input-suffix"
      class="usa-input"
      pattern="[0-9]*"
      inputmode="numeric"
      disabled
    />
    <div class="usa-input-suffix" aria-hidden="true">lbs.</div>
  </div>
</form>

Screenshots

Screen Shot 2022-08-08 at 11 03 49 AM

System setup

  • USWDS version: 3.0.2
  • Device: Macbook Pro
  • Operating System: OSX 12.4
  • Browser and version: Chrome v103

Additional context

No response

Code of Conduct

Activity

  1. moved this to Ready to Schedule in USWDS Core Project Dataon Aug 31, 2022
  2. mahoneycm commented on Oct 14, 2022

    @mahoneycm
    Contributor

    The error appears for me on chrome. Will investigate further.

  3. removed
    Needs: ConfirmationReported behavior needs validation. Remove after recording reproduction or investigation results.
    on Oct 14, 2022
  4. self-assigned this
    on Oct 14, 2022
  5. moved this from Ready to Schedule to In progress in USWDS Core Project Dataon Oct 21, 2022
  6. moved this from In progress to Review in USWDS Core Project Dataon Nov 1, 2022
  7. moved this from Review to Fed Final Review in USWDS Core Project Dataon Nov 30, 2022
  8. moved this from Fed Final Review to Review in USWDS Core Project Dataon Feb 7, 2023
  9. added this to the uswds 3.5.0 milestone on Mar 16, 2023
  10. linked a pull request that will close this issueForm Inputs: Normalize disabled forms styles #5063on May 4, 2023
  11. moved this from Review to Fed Final Review in USWDS Core Project Dataon May 4, 2023
  12. moved this from Fed Final Review to Done in USWDS Core Project Dataon May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions