Skip to content

Commit

Permalink
🩹 Remove styling from field settings (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x authored Mar 26, 2024
2 parents cb8505f + 207e46b commit b38051b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: Advanced Custom Fields: Editor Palette Field
* Plugin URI: https://github.com/log1x/acf-editor-palette
* Description: A Gutenberg-like editor palette color picker field for Advanced Custom Fields.
* Version: 1.1.6
* Version: 1.1.7
* Author: Brandon Nifong
* Author URI: https://github.com/log1x
*/
Expand Down
13 changes: 1 addition & 12 deletions src/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,7 @@ public function render_field_settings($field)
}

foreach ($palette as $item) {
$colors[$item['slug']] = sprintf(
'<span style="display: inline-block;
background-color: %s;
width: 1em;
height: 1em;
margin: 0 3px -3px;
border: 1px solid #ccd0d4;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);"
></span> %s',
$item['color'],
$item['name']
);
$colors[$item['slug']] = $item['name'];
}

acf_render_field_setting($field, [
Expand Down

0 comments on commit b38051b

Please sign in to comment.