Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UHF-10711: Change form item description styling #1119

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/css/styles.min.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
Loading