Releases: ava-cassiopeia/simple-switch
Unit Tests, and Fixes Due to Them
First release after adding unit tests to the Simple Switch. Unit tests are not 100% complete, but have already identified a bug; specifically, that the Switch would not acquire the checked state properly from the checkbox element beneath it. This is now fixed.
Material Mode + Small Cleanup
Adds the Material mode to the Switch, which causes the Switch to match the Material.io specification for a Switch UI element.
Dynamic Sizing and CSS Variables
The Switch will now dynamically size itself to the set font size, so that it matches the size of any label it is adjacent to.
This primarily uses CSS Variables to do so, but there is a fallback using the CSS @supports
to make sure that this still works on older browsers.
Minor Updates
Minor updates to the core Switch
class (mostly internal), and serious improvements to documentation.
First Release
First release; contains basic working model of the code.