Skip to content

Add a 'clear' option to NcColorPicker #4037

@Antreesy

Description

@Antreesy

Would be nice to have a 'Clear' button inside of NcPopover to be able to reset color, which has been set up before.
Same could be applied for the second click on picked color (unselect)

Source code:
https://github.com/nextcloud/nextcloud-vue/blob/master/src/components/NcColorPicker/NcColorPicker.vue

Important:

Current upstream library (Chrome component) does not support undefined as a color value.

[Vue warn]: Error in render: "TypeError: this.colors is undefined"

found in

---> <Chrome> at src/components/Chrome.vue

Something neutral should be passed:

  • empty string
  • fallback color
  • neutral color (black, white)
  • default color (Nc blue or defaultPallete[0]

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions