fix: Use label for "Subscribe to updates" checkbox (#2788)

This commit is contained in:
Pascal Jufer
2021-08-13 15:40:47 +02:00
committed by GitHub
parent 9e052fd5b2
commit 37bf4b7dd8
2 changed files with 19 additions and 16 deletions

View File

@@ -8,6 +8,22 @@
font-weight: var(--font-weight-light);
margin-top: var(--space-large);
}
.update-subscription--checkbox {
display: flex;
input {
line-height: 1.5;
margin-right: var(--space-one);
margin-top: var(--space-smaller);
}
label {
font-size: var(--font-size-small);
line-height: 1.5;
margin-bottom: var(--space-normal);
}
}
}
.alert-box {
@@ -20,17 +36,4 @@
text-align: center;
}
.update-subscription--checkbox {
display: flex;
input {
line-height: 1.5;
margin-right: var(--space-one);
}
div {
font-size: var(--font-size-small);
line-height: 1.5;
margin-bottom: var(--space-normal);
}
}

View File

@@ -43,9 +43,9 @@
</label>
<div class="update-subscription--checkbox">
<%= check_box_tag "subscribe_to_updates", 'true', true %>
<div for="subscribe_to_updates">
Subscribe to release notes, newsletters & product feedback surveys.
</div>
<label for="subscribe_to_updates">
Subscribe to release notes, newsletters & product feedback surveys.
</label>
</div>
<button type="submit" class="button nice large expanded">
Finish Setup