diff --git a/messages/de.json b/messages/de.json
index 57f95616c..c8d46db99 100644
--- a/messages/de.json
+++ b/messages/de.json
@@ -1639,7 +1639,8 @@
"genderHint": "Wird für geschlechtsspezifische Zielwerte verwendet.",
"timezone": "Zeitzone",
"timezoneHint": "Wird für Diagrammachsen, Erinnerungszeiten, Export-Zeitstempel und den Coach-Kontext verwendet. Gespeicherte Daten bleiben unverändert.",
- "timezoneDetect": "Browser-Zeitzone übernehmen ({tz})",
+ "timezoneDetect": "Browser-Zeitzone übernehmen",
+ "timezoneDetectAria": "Browser-Zeitzone {tz} übernehmen",
"timezoneInvalid": "Keine gültige IANA-Zeitzone.",
"profileSaved": "Profil gespeichert",
"changePassword": "Passwort ändern",
diff --git a/messages/en.json b/messages/en.json
index effd8cddd..26db86590 100644
--- a/messages/en.json
+++ b/messages/en.json
@@ -1639,7 +1639,8 @@
"genderHint": "Used for gender-specific target values.",
"timezone": "Timezone",
"timezoneHint": "Used for chart axis labels, reminder times, export timestamps, and Coach context. Stored data is unchanged.",
- "timezoneDetect": "Use browser timezone ({tz})",
+ "timezoneDetect": "Use browser timezone",
+ "timezoneDetectAria": "Use browser timezone {tz}",
"timezoneInvalid": "Not a valid IANA timezone.",
"profileSaved": "Profile saved",
"changePassword": "Change password",
diff --git a/messages/es.json b/messages/es.json
index b9a2f3b83..8774fdf7e 100644
--- a/messages/es.json
+++ b/messages/es.json
@@ -1639,7 +1639,8 @@
"genderHint": "Used for gender-specific target values.",
"timezone": "Zona horaria",
"timezoneHint": "Used for chart axis labels, reminder times, export timestamps, and Coach context. Stored data is unchanged.",
- "timezoneDetect": "Use browser timezone ({tz})",
+ "timezoneDetect": "Use browser timezone",
+ "timezoneDetectAria": "Use browser timezone {tz}",
"timezoneInvalid": "Not a valid IANA timezone.",
"profileSaved": "Profile saved",
"changePassword": "Change password",
diff --git a/messages/fr.json b/messages/fr.json
index 9ad6defc2..60481947c 100644
--- a/messages/fr.json
+++ b/messages/fr.json
@@ -1639,7 +1639,8 @@
"genderHint": "Used for gender-specific target values.",
"timezone": "Fuseau horaire",
"timezoneHint": "Used for chart axis labels, reminder times, export timestamps, and Coach context. Stored data is unchanged.",
- "timezoneDetect": "Use browser timezone ({tz})",
+ "timezoneDetect": "Use browser timezone",
+ "timezoneDetectAria": "Use browser timezone {tz}",
"timezoneInvalid": "Not a valid IANA timezone.",
"profileSaved": "Profile saved",
"changePassword": "Change password",
diff --git a/messages/it.json b/messages/it.json
index b4c5c9f82..08b458dc5 100644
--- a/messages/it.json
+++ b/messages/it.json
@@ -1639,7 +1639,8 @@
"genderHint": "Used for gender-specific target values.",
"timezone": "Fuso orario",
"timezoneHint": "Used for chart axis labels, reminder times, export timestamps, and Coach context. Stored data is unchanged.",
- "timezoneDetect": "Use browser timezone ({tz})",
+ "timezoneDetect": "Use browser timezone",
+ "timezoneDetectAria": "Use browser timezone {tz}",
"timezoneInvalid": "Not a valid IANA timezone.",
"profileSaved": "Profile saved",
"changePassword": "Change password",
diff --git a/messages/pl.json b/messages/pl.json
index 7cfd5ac43..3eecc932e 100644
--- a/messages/pl.json
+++ b/messages/pl.json
@@ -1639,7 +1639,8 @@
"genderHint": "Used for gender-specific target values.",
"timezone": "Strefa czasowa",
"timezoneHint": "Used for chart axis labels, reminder times, export timestamps, and Coach context. Stored data is unchanged.",
- "timezoneDetect": "Use browser timezone ({tz})",
+ "timezoneDetect": "Use browser timezone",
+ "timezoneDetectAria": "Use browser timezone {tz}",
"timezoneInvalid": "Not a valid IANA timezone.",
"profileSaved": "Profile saved",
"changePassword": "Change password",
diff --git a/src/components/settings/timezone-picker.tsx b/src/components/settings/timezone-picker.tsx
index f26157d9c..f336a5f30 100644
--- a/src/components/settings/timezone-picker.tsx
+++ b/src/components/settings/timezone-picker.tsx
@@ -80,9 +80,14 @@ export function TimezonePicker({
variant="outline"
size="sm"
onClick={handleUseBrowserTz}
+ aria-label={
+ detected
+ ? t("settings.timezoneDetectAria", { tz: detected })
+ : undefined
+ }
>
{labelHint}
diff --git a/src/components/ui/date-input.tsx b/src/components/ui/date-input.tsx index 91c72adfb..395c83e3b 100644 --- a/src/components/ui/date-input.tsx +++ b/src/components/ui/date-input.tsx @@ -3,6 +3,7 @@ import * as React from "react"; import { Input } from "@/components/ui/input"; +import { cn } from "@/lib/utils"; import { useTranslations } from "@/lib/i18n/context"; /** @@ -13,16 +14,47 @@ import { useTranslations } from "@/lib/i18n/context"; * having to pull `locale` out of `useTranslations()` just to feed it * back into the same JSX prop, and guarantees a future date input * cannot silently regress by forgetting the hint. + * + * v1.4.33 — height parity with `` and `