Skip to content

Commit

Permalink
Updated site slogan in theme settings to be not required.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Oct 30, 2023
1 parent f1d8cbe commit eba975c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function form(&$form, FormStateInterface &$form_state) {
'#title' => $this->t('Content'),
'#description' => $this->t('Set the site slogan.'),
'#type' => 'textfield',
'#required' => TRUE,
'#required' => FALSE,
'#min' => 0,
'#default_value' => $this->themeConfigManager->load('components.site_slogan.content'),
];
Expand Down
2 changes: 1 addition & 1 deletion tests/behat/features/theme.settings.components.feature
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Feature: Components settings are available in the theme settings

And I should see the text "Content"
And I should see an "input[name='components[site_slogan][content]']" element
And I should see an "#edit-components-site-slogan-content.required" element
And I should not see an "#edit-components-site-slogan-content.required" element

And I should see the text "Theme"
And I should see an "input[name='components[footer][theme]']" element
Expand Down

0 comments on commit eba975c

Please sign in to comment.