FLUID-6539: Investigate implementing switch components using a button element

Metadata

Source
FLUID-6539
Type
Improvement
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Ned Zimmerman
Reporter
Justin Obara
Created
2020-08-04T10:39:34.755-0400
Updated
2020-10-27T16:46:21.393-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Prefs Framework
  2. UI Options

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).

Comments