Skip to content

Commit 394ad2d

Browse files
committed
Added AC3 - Update to design - use a large label for search.
1 parent 1d4e4c9 commit 394ad2d

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

web/themes/contrib/civictheme/includes/form_element.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ function _civictheme_preprocess_form_element__generic(array &$variables): void {
369369
$title_display = 'hidden';
370370
}
371371
$variables['title_display'] = $title_display;
372+
$variables['title_size'] = $element['#title_size'] ?? '';
372373

373374
$variables['orientation'] = $variables['orientation'] ?? $title_display === 'inline' ? 'horizontal' : 'vertical';
374375

web/themes/contrib/civictheme/includes/views.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ function civictheme_preprocess_views_exposed_form(array &$variables): void {
167167
$keyword_field = reset($fields);
168168
if ($keyword_field['#type'] === 'textfield') {
169169
$variables['inline_filter'] = TRUE;
170+
$keyword_field['#title_size'] = 'extra-large';
170171
$variables['filter_items'] = $keyword_field;
171172
$submit_field = $variables['form']['actions']['submit'] ?? NULL;
172173
if (!empty($submit_field)) {

web/themes/contrib/civictheme/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"dependencies": {
4141
"@popperjs/core": "^2.11.8",
42-
"@civictheme/uikit": "github:civictheme/uikit#9cd03e2f25e65c3236b07177d941f5cd17702a6b"
42+
"@civictheme/uikit": "github:civictheme/uikit#bd1d7944ff7f1030359d31c61c9dd88f64038d8d"
4343
},
4444
"devDependencies": {
4545
"@civictheme/scss-variables-extractor": "^0.2.1",

web/themes/contrib/civictheme/templates/form/form-element--civictheme-field.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
theme: theme,
1010
title: title,
1111
title_display: title_display,
12+
title_size: title_size,
1213
type: type,
1314
orientation: orientation,
1415
placeholder: placeholder,

0 commit comments

Comments
 (0)