feat(mat-selection-list): add slide toggle as alternative for checkbox
- Dominant language
- TypeScript
- Stars
- 25k
- Forks
- 6.8k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 91
Description
#### Bug, feature request, or proposal:
feature request
#### What is the expected behavior?
Option lists can have slide toggles instead of checkboxes, as you can see on Android OS.
#### What is the current behavior?
Option lists are only for checkboxes and if you want to create something that has the same look but has a slide toggle instead, you will have to implement by yourself.
#### What is the use-case or motivation for changing an existing behavior?
Its a very common option list format, very used on Android 5~6.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Material 5.1
#### Is there anything else we should know?
You can find it in Material's guidelines:

*(switches are very cute btw)*
Cute sidebar example:

*(inspired by Twitter's PWA, achieved with slide-toggle, mat-list and `::ng-deep`, that's a lot more than I expect to write)*
Contributor guide
Research direction
Start by reviewing the mat-selection-list and slide-toggle components and how the current option-list checkbox behavior is exposed. The work is done when option lists support slide toggles as an alternative presentation while retaining the expected selection behavior, with coverage for the new option.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100