Commit 9b7b5915 authored by Nia Kathoni's avatar Nia Kathoni Committed by Daniel Cothran
Browse files

Issue #3326655 by nikathone: Charts color input on claro

parent 08a76143
Loading
Loading
Loading
Loading
+8 −2
Changes for src/Element/BaseSettings.php: 8 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -922,7 +922,10 @@ class BaseSettings extends FormElement {
      $field_option_element['color'] = [
        '#type' => 'textfield',
        '#title' => new TranslatableMarkup('Color'),
        '#attributes' => ['TYPE' => 'color'],
        '#attributes' => [
          'TYPE' => 'color',
          'style' => 'min-width:50px;',
        ],
        '#title_display' => 'invisible',
        '#size' => 10,
        '#maxlength' => 7,
@@ -1107,7 +1110,10 @@ class BaseSettings extends FormElement {
        '#type' => 'textfield',
        '#title' => new TranslatableMarkup('Color'),
        '#title_display' => 'invisible',
        '#attributes' => ['TYPE' => 'color'],
        '#attributes' => [
          'TYPE' => 'color',
          'style' => 'min-width:50px;',
        ],
        '#size' => 10,
        '#maxlength' => 7,
        '#theme_wrappers' => [],
+4 −1
Changes for src/Element/ChartDataCollectorTable.php: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -205,7 +205,10 @@ class ChartDataCollectorTable extends FormElement {
            '#type' => 'textfield',
            '#title' => t('Color'),
            '#title_display' => 'invisible',
            '#attributes' => ['TYPE' => 'color'],
            '#attributes' => [
              'TYPE' => 'color',
              'style' => 'min-width:50px;',
            ],
            '#size' => 10,
            '#maxlength' => 7,
            '#default_value' => $column['color'],