Skip to content

Commit

Permalink
Add clarifying comment about colorSettings prop
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Jul 20, 2018
1 parent 4b716c0 commit 2ac93a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/components/panel-color-settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ const renderColorIndicators = ( colorSettings, colors ) => {
} );
};

// colorSettings is passed as an array of props so that it can be used for
// mapping both ColorIndicator and ColorPaletteControl components. Passing
// an array of components/nodes here wouldn't be feasible
export function PanelColorSettings( { title, colorSettings, colors, children, ...props } ) {
const className = 'editor-panel-color-settings';

Expand Down

0 comments on commit 2ac93a3

Please sign in to comment.