Skip to content

Commit b38051b

Browse files
authored
🩹 Remove styling from field settings (#55)
2 parents cb8505f + 207e46b commit b38051b

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin Name: Advanced Custom Fields: Editor Palette Field
55
* Plugin URI: https://github.com/log1x/acf-editor-palette
66
* Description: A Gutenberg-like editor palette color picker field for Advanced Custom Fields.
7-
* Version: 1.1.6
7+
* Version: 1.1.7
88
* Author: Brandon Nifong
99
* Author URI: https://github.com/log1x
1010
*/

src/Field.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -153,18 +153,7 @@ public function render_field_settings($field)
153153
}
154154

155155
foreach ($palette as $item) {
156-
$colors[$item['slug']] = sprintf(
157-
'<span style="display: inline-block;
158-
background-color: %s;
159-
width: 1em;
160-
height: 1em;
161-
margin: 0 3px -3px;
162-
border: 1px solid #ccd0d4;
163-
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);"
164-
></span> %s',
165-
$item['color'],
166-
$item['name']
167-
);
156+
$colors[$item['slug']] = $item['name'];
168157
}
169158

170159
acf_render_field_setting($field, [

0 commit comments

Comments
 (0)