Skip to content

Commit

Permalink
add in label
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Jan 2, 2020
1 parent 6cea53b commit 3fe4f42
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/main.js

Large diffs are not rendered by default.

30 changes: 24 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/WPTRTColorAlphaForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const WPTRTColorAlphaForm = ( props ) => {

return (
<div>
<label className="customize-control-title">{ props.label }</label>
<label className="customize-control-title" for={ props.control.id + '-input' }>{ props.label }</label>
<span className="description customize-control-description" dangerouslySetInnerHTML={{ __html: props.description }}></span>
<div className="customize-control-notifications-container" ref={ props.setNotificationContainer }></div>
<div style={ styles.inputWrapper }>
Expand All @@ -151,6 +151,7 @@ const WPTRTColorAlphaForm = ( props ) => {
style={ styles.textInput }
value={ 'array' === props.choices.save_as ? props.value.css : props.value }
onChange={ handleInputChange }
id={ props.control.id + '-input' }
/>
<button className="button" onClick={ resetValue } style={ styles.resetButton }>{ window.wpColorPickerL10n.defaultString }</button>
</div>
Expand Down

0 comments on commit 3fe4f42

Please sign in to comment.