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

Investigate implementing switch components using a button element

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Prefs Framework, UI Options
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: