Skip to content

Fields should not indicate they are required if they are disabled #895

@samglover

Description

@samglover

Describe the bug

When the user chooses a court from the pre-selected options based on the address they entered, the drop-down selector with the full list is disabled, but the required indicator asterisk still appears:

Screenshot 2024-11-22 at 9 38 35 AM

This could be confusing to some users, since the asterisk and the "Select…" text suggests they ought to do something, but they can't because the field is disabled.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the choose a court (courts matching provided address were found) screen after entering a valid address
  2. Select any of the courts shown
  3. Scroll down to drop-down selector below "Does the list above look wrong?"
  4. See that the red asterisk is still showing even though the selector field is disabled

Expected behavior
The red asterisk should not show up when the field is disabled.

Additional context
I used CSS to solve the problem for a small claims interview for the Massachusetts Trial Court. Here is the pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CSSDocassembleDocassemble code experience neededbite sizebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions