-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace checkbox with new toggle control and create color palette con…
…trol
- Loading branch information
1 parent
21e05b1
commit 8aec9c9
Showing
22 changed files
with
349 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
core/includes/customizer/extend-controls/src/palette/palette-color-picker.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import PropTypes from "prop-types"; | ||
|
||
const PaletteColorPicker = props => { | ||
|
||
return ( | ||
<div className="responsive-color-picker-btn-wrap" tabIndex="0"> | ||
<span className="component-color-indicator responsive-color-palette-indicate" style={{ background: props.colorsPicks.accent }}></span> | ||
<span className="component-color-indicator responsive-color-palette-indicate" style={{ background: props.colorsPicks.text }}></span> | ||
<span className="component-color-indicator responsive-color-palette-indicate" style={{ background: props.colorsPicks.background }}></span> | ||
</div> | ||
); | ||
}; | ||
|
||
PaletteColorPicker.propTypes = { | ||
control: PropTypes.object.isRequired | ||
}; | ||
|
||
export default React.memo(PaletteColorPicker); |
Oops, something went wrong.