Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-6539

Investigate implementing switch components using a button element

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Prefs Framework, UI Options
    • Labels:
      None

      Description

      Currently the switch component markup has been implemented using a combination of <div> and <span> elements. It would be more semantic to use a <button> element instead. This would provide native support for things like disabling, and input handling. 

      See: https://www.smashingmagazine.com/2017/09/building-inclusive-toggle-buttons/

      Switches are used for boolean adjusters in the prefs framework adjusters. (e.g. table of contents).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              greatislander Ned Zimmerman
              Reporter:
              jobara Justin Obara
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: