Skip to content

Commit

Permalink
cssColor → color
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Sep 15, 2024
1 parent 7f93494 commit 7045215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Element/OptionDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7045215

Please sign in to comment.