owncloud-design-system
owncloud-design-system copied to clipboard
OcCheckbox: add support for showing default values and clear buttons
Description
This PR adds support for showing default values and a clear button to OcCheckbox
.
It's not beautiful (visually) by any means and the same UX problems as for owncloud/owncloud-design-system#1634 apply here too.
Needs UX concept by @kulmann and @tbsbdr
Related Issue
- owncloud/owncloud-design-system#1634
- Fixes 3 :x: from owncloud/web#8857
(
@change
,clearButtonEnabled
anddefaultValue
)
Motivation and Context
See owncloud/owncloud-design-system#1634
How Has This Been Tested?
Screenshots (if appropriate):
Nothing selected by user
Clicked once to switch value:
Clicked twice to explicitly set value:
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Technical debt
- [ ] Tests
Checklist:
- [x] Code changes
- [ ] Unit tests added
- [ ] Acceptance tests added
- [x] Documentation added/updated
Open tasks:
- [ ] ...