owncloud-design-system icon indicating copy to clipboard operation
owncloud-design-system copied to clipboard

OcCheckbox: add support for showing default values and clear buttons

Open dschmidt opened this issue 2 years ago • 2 comments

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 and defaultValue)

Motivation and Context

See owncloud/owncloud-design-system#1634

How Has This Been Tested?

Screenshots (if appropriate):

Nothing selected by user Screenshot_20210905_124232 Clicked once to switch value: Screenshot_20210905_124309 Clicked twice to explicitly set value: Screenshot_20210905_124336

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:

  • [ ] ...

dschmidt avatar Sep 05 '21 10:09 dschmidt