-
Notifications
You must be signed in to change notification settings - Fork 0
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
WP-Builder: Feat/colorPalette-implementation #9
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
scope: "#/properties/colorPaletteControl", | ||
options: { | ||
format: 'color', | ||
colors:[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
options.colors
is new option prop used for the new palette control
@@ -5,6 +5,9 @@ import ReactDOM from "react-dom"; | |||
// include your styles into the webpack bundle | |||
import "../styles/index.css"; | |||
|
|||
// include @wordpress/components styles | |||
import '@wordpress/components/build-style/style.css'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing style leads to mismatch renderer
) | ||
}; | ||
|
||
const optionIsNotEmpty = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should move this tester into seperate file, will come back later
Summary
optionIsNotEmpty
method should move to new file when needed, it will expect acolors
prop inoptions
object to display a regular color picker ( implemented soon ) or a palette pickerReference
Framer motion
lib makes the popover broken has been address and fixed in this issue https://togithub.com/WordPress/gutenberg/issues/51893