Skip to content

Commit

Permalink
Apply style of switch to checkbox list
Browse files Browse the repository at this point in the history
  • Loading branch information
rilwis committed Aug 21, 2024
1 parent c1b0126 commit f7e9c1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/controls/CheckboxList.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ const CheckboxList = ( { name, options, description } ) => {
{ description && <div className="mb-cpt-description">{ description }</div> }
<ul className="mb-cpt-input-list">
{ Object.entries( options ).map( ( [ value, label ] ) => (
<li key={ value }>
<li key={ value } className="mb-cpt-toggle">
<label>
<input type="checkbox" value={ value } checked={ saved.includes( value ) } onChange={ onChange } />
<div className="mb-cpt-toggle__switch"></div>
{ label }
</label>
</li>
Expand Down
2 changes: 1 addition & 1 deletion assets/post-type.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/taxonomy.js

Large diffs are not rendered by default.

0 comments on commit f7e9c1f

Please sign in to comment.