Verified Commit 16ba7552 authored by Mike Herchel's avatar Mike Herchel
Browse files

fix: #3587995 Default admin theme settings form color pickers missing accessible names

By: kentr
By: mgifford
By: jurgenhaas
By: mherchel
parent 2742c2eb
Loading
Loading
Loading
Loading
Loading
+4 −0
Changes for core/themes/default_admin/src/Settings.php: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -277,6 +277,8 @@ public function getSettingsForm(?AccountInterface $account = NULL): array {
    // Accent color picker (helper field).
    $form['accent_group']['accent_picker'] = [
      '#type' => 'color',
      '#title' => $this->t('Accent color picker'),
      '#title_display' => 'invisible',
      '#placeholder' => '#777777',
      '#default_value' => $account ? $this->get('accent_color', $account) : $this->getDefault('accent_color'),
      '#process' => [[__CLASS__, 'processColorPicker']],
@@ -314,6 +316,8 @@ public function getSettingsForm(?AccountInterface $account = NULL): array {
    // Focus color picker (helper).
    $form['focus_group']['focus_picker'] = [
      '#type' => 'color',
      '#title' => $this->t('Focus color picker'),
      '#title_display' => 'invisible',
      '#placeholder' => '#777777',
      '#default_value' => $account ? $this->get('focus_color', $account) : $this->getDefault('focus_color'),
      '#process' => [[__CLASS__, 'processColorPicker']],