fix(settings): lint, size and test follow-ups for the date format

The admin reset link is a component of its own instead of one made during render, the version line of the plugin panels moved into small modules, the new settings rows hand their save on as void, the date picker takes an accessible name for fields without a visible label (the Vacay hire date), the Vacay and poll tests type through the shared picker, and the theme, size and lint baselines are lowered to what the files hold now.
This commit is contained in:
Maurice
2026-11-03 22:08:54 +01:00
parent 44c6fbf372
commit adbe3a40f6
19 changed files with 188 additions and 99 deletions
@@ -29,6 +29,8 @@ interface CustomDatePickerProps {
// disabled in the calendar and rejected on manual entry.
min?: string;
max?: string;
/** What the field is, for a picker without a visible label around it; the trigger reads it with its date. */
ariaLabel?: string;
}
export function CustomDatePicker({
@@ -41,6 +43,7 @@ export function CustomDatePicker({
disabled = false,
min,
max,
ariaLabel,
}: CustomDatePickerProps) {
const { locale, t } = useTranslation();
const weekStart = useWeekStartDay();
@@ -298,7 +301,11 @@ export function CustomDatePicker({
type="button"
onClick={() => setOpen((o) => !o)}
disabled={disabled}
aria-label={displayValue || placeholder || t('common.date')}
aria-label={
ariaLabel
? [ariaLabel, displayValue].filter(Boolean).join(': ')
: displayValue || placeholder || t('common.date')
}
aria-expanded={open}
aria-haspopup="dialog"
style={{