Skip to content

Commit

Permalink
Merge pull request #1119 from City-of-Helsinki/UHF-10711-fixes-2
Browse files Browse the repository at this point in the history
UHF-10711: Change form item description styling
  • Loading branch information
teroelonen authored Nov 27, 2024
2 parents 60fd07d + 6965f3a commit d4e413a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/css/styles.min.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/scss/06_components/forms/_form.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.form-item {
margin-bottom: $spacing;

.description {
color: $color-black-60;
margin-top: $spacing-quarter;
}
}
1 change: 0 additions & 1 deletion templates/form/email/form-element--email.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
{%
set description_classes = [
'description',
'hds-text-input__helper-text',
description_display == 'invisible' ? 'visually-hidden',
]
%}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

{% set description_classes = [
'description',
'hds-text-input__helper-text',
description_display == 'invisible' ? 'visually-hidden',
] %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
{%
set description_classes = [
'description',
'hds-text-input__helper-text',
description_display == 'invisible' ? 'visually-hidden',
]
%}
Expand Down
1 change: 0 additions & 1 deletion templates/form/textarea/form-element--textarea.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
{%
set description_classes = [
'description',
'hds-text-input__helper-text',
description_display == 'invisible' ? 'visually-hidden',
]
%}
Expand Down

0 comments on commit d4e413a

Please sign in to comment.