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: Open
    • Priority: Major
    • Resolution: Unresolved
    • 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

          Activity

            People

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

              Dates

              Created:
              Updated: