RoleModel / optics

Optics, a RoleModel Design System is an scss package that provides base styles and components that can be integrated and customized in a variety of projects.
https://docs.optics.rolemodel.design
MIT License
15 stars 0 forks source link

Rename toggle to switch #192

Closed Jeremy-Walton closed 1 year ago

Jeremy-Walton commented 1 year ago

Why?

In order to support aria roles and consistent naming in the future, we want to rename toggle to switch.

Note: I did not introduce the role of switch since:

  1. It may require other changes and want think through them. See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/switch_role
  2. We have a task to do this in the future. See https://trello.com/c/DotKJBw8/131-aria-considerations

What Changed

Sanity Check

Jeremy-Walton commented 1 year ago

This fixes https://github.com/RoleModel/optics/pull/185

Jeremy-Walton commented 1 year ago

Switch (formerly Toggle)