Skip to content

Commit fabb181

Browse files
committed
Improve early access checkbox label and fix multiline alignment
1 parent 5cd88d4 commit fabb181

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

i18n/de.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
- id: accept_hub_newsletter_optional
3636
translation: "Ich bin damit einverstanden, Neuigkeiten von Cryptomator Hub per E-Mail zu erhalten (optional)."
3737
- id: accept_hub_managed_early_access_optional
38-
translation: "Early access"
38+
translation: "<span class=\"inline-flex px-2 py-0.5 rounded-full text-xs font-medium uppercase bg-primary-l2 text-dark\">BETA</span> <a class=\"text-link\" href=\"https://docs.cryptomator.org/hub/early-access/\" target=\"_blank\">Early Access von Cryptomator Hub 1.5.0</a> mit brandneuen Features und einer verlängerten 100-Tage-Testphase testen (optional)."
3939
- id: accept_privacy
4040
translation: "Ich akzeptiere die <a class=\"text-link\" href=\"/de/privacy/\">Datenschutzerklärung</a>."
4141
- id: accept_privacy_implicitly

i18n/en.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
- id: accept_hub_newsletter_optional
3636
translation: "I agree to get updates from Cryptomator Hub via email (optional)."
3737
- id: accept_hub_managed_early_access_optional
38-
translation: "Early access"
38+
translation: "<span class=\"inline-flex px-2 py-0.5 rounded-full text-xs font-medium uppercase bg-primary-l2 text-dark\">BETA</span> Try out <a class=\"text-link\" href=\"https://docs.cryptomator.org/hub/early-access/\" target=\"_blank\">early access of Cryptomator Hub 1.5.0</a> with brand new features and an extended 100-day trial (optional)."
3939
- id: accept_privacy
4040
translation: "I accept the <a class=\"text-link\" href=\"/privacy/\" target=\"_blank\">Privacy Policy</a>."
4141
- id: accept_privacy_implicitly

layouts/partials/checkbox.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{{ $unique_id := printf "id-%s" (delimit (shuffle (seq 1 9)) "") }}
2-
<input class="mr-1 rounded-sm text-primary focus:ring-0 focus:ring-offset-0 focus:border-secondary" type="checkbox" id="{{ $unique_id }}" x-model="{{ .alpineVariable }}" />
3-
<label for="{{ $unique_id }}">{{ .label }}</label>
2+
{{/* pl-6 + -indent-6: wrapped lines align with text, not checkbox. [&_*]:indent-0: reset for child elements (e.g. pills). */}}
3+
<label class="inline-block pl-6 -indent-6 [&_*]:indent-0" for="{{ $unique_id }}">
4+
<input class="mr-2 rounded-sm text-primary focus:ring-0 focus:ring-offset-0 focus:border-secondary" type="checkbox" id="{{ $unique_id }}" x-model="{{ .alpineVariable }}" />{{ .label | safeHTML }}
5+
</label>

0 commit comments

Comments
 (0)