Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Use the color-parser props for colorPicker value #3788

Merged
merged 6 commits into from
Sep 22, 2022

Conversation

GMartigny
Copy link
Contributor

I made this PR to open conversation about the ColorPicker component:

  1. When setting the color-parser prop in a ColorPicker, it's used only at the component definition (mounting). It feels like a bug, but I don't know if this is intentionnal.

  2. Also I would like to point out that throwing error on color parsing is kinda annoying. This force the user to deal with uncaught exception bubbling.

  3. One last thing, the Color class is not exported by Buefy. User needs to import 'buefy/src/utils/color.js?module' to access it, which is not trivial to guess.

@jtommy
Copy link
Member

jtommy commented Sep 15, 2022

About Color class you can add it in the index.js so the user can import using import { Color } from 'buefy'

@jtommy jtommy merged commit e95251b into buefy:dev Sep 22, 2022
@GMartigny GMartigny deleted the feature/parseColorValue branch October 25, 2022 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants