From 7045215ab1e32727a441a6086b8da23727e5fb4d Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Mon, 16 Sep 2024 09:43:25 +1000 Subject: [PATCH] =?UTF-8?q?cssColor=20=E2=86=92=20color?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Element/OptionDefinition.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Element/OptionDefinition.php b/src/Element/OptionDefinition.php index 26d09ac9b..5d151a90f 100644 --- a/src/Element/OptionDefinition.php +++ b/src/Element/OptionDefinition.php @@ -15,7 +15,7 @@ * @method OptionDefinition readOnly(bool $readOnly) readOnly specifies if the option is read-only or not. * @method OptionDefinition disabled(bool $disabled) disabled specifies if the option is disabled or not. * @method OptionDefinition hidden(bool $hidden) hidden defines the option without ever displaying it - * @method OptionDefinition cssColor(string $cssColor) cssColor defines a status indicator color for the option (dropdown) + * @method OptionDefinition color(string $color) color defines a status indicator color for the option as a hex color (dropdown) * @method OptionDefinition icon(string $icon) icon specifies an icon name for this option * @method OptionDefinition image(string $image) image specifies an image URL for this option * @method OptionDefinition children(array $image) children specifies child options for a nested structure @@ -63,7 +63,7 @@ public function useOptionConfig($option): OptionDefinition $this->comment($secondPart); if (Html::isValidColor($secondPart)) { - $this->cssColor($secondPart); + $this->color($secondPart); } elseif (strpos($secondPart, '.')) { $this->image($secondPart);