Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-80610

Focus indicator for checkboxes, radio buttons and toggles may be failing contrast requirements

XMLWordPrintable

    • MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • 3

       Checkboxes, radios and toggles may be failing WCAG 2.4.13 Focus appearance when enabled/selected as there is not enough contrast between the focuses and not focused state.

       

      Non focused state

      Checkboxes, radios and toggles are blue when enabled/selected

       

      Focused state

      A box-shadow thicker than 2px is added to the input but there isn't enough contrast (3:1 minimum) and it's hard to distinguish from the non-focused state.

       

      Proposed fix

      Add a double coloured box-shadow to these elements, similarly to the button components.
      For example:

            Unassigned Unassigned
            Zanatta Susanna
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.