From 3b3b4ca69dce71f9eb8fa58847dce67565a7ec56 Mon Sep 17 00:00:00 2001 From: xiongmao86 Date: Sat, 29 Apr 2023 12:23:53 +0800 Subject: [PATCH] Add description for some of the aria-labels for DateInput --- packages/docs/translations/en.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/docs/translations/en.json b/packages/docs/translations/en.json index f937ef9459..8dada8b0df 100644 --- a/packages/docs/translations/en.json +++ b/packages/docs/translations/en.json @@ -222,7 +222,8 @@ "ratio": "Aspect ratio of the component's wrapper.", "groupBy": "When `options` prop is an object, this key will be used to group up options. Can be string (path to the key) or function of type: `(option) => option.group`", "grow": "Take all container width", - "immediateValidation": "Sets the validation to be performed when the component is mounted" + "immediateValidation": "Sets the validation to be performed when the component is mounted", + "anchorSelector": "Anchor CSS selector instead of passing slot" } }, "VaBadge": { @@ -1009,7 +1010,6 @@ "cursor": "Dropdown will be rendered relative to cursor position", "closeOnAnchorClick": "Dropdown will be closed when anchor is clicked", "closeOnClickOutside": "Dropdown will be closed when clicked outside dropdown content and anchor", - "anchorSelector": "Anchor CSS selector instead of passing slot", "autoPlacement": "If dropdown doesn't fit viewport, it will be placed automatically to fit viewport" }, "events": { @@ -1206,7 +1206,11 @@ "manualInput": "Allows user to manually input date in VaInput", "parse": "Function that transforms input field text to date, date array or date period", "parseDate": "Function that transforms input field text to date", - "parseValue": "Function that transforms string value to date, date array or date period" + "parseValue": "Function that transforms string value to date, date array or date period", + "ariaLabel": "The aria-label of the input", + "ariaNextPeriodLabel": "The aria-label of the \"next period\" button", + "ariaPreviousPeriodLabel": "The aria-label of the \"previous period\" button", + "ariaResetLabel": "The aria-label of the \"reset\" button" }, "events": { "clear": "Emitted if select value has been cleared", @@ -1478,7 +1482,6 @@ }, "VaDropdown": { "props": { - "anchorSelector": "Anchor CSS selector instead of passing slot", "innerAnchorSelector": "Anchor CSS selector inside passed slot", "autoPlacement": "If dropdown doesn't fit viewport, it will be placed automatically to fit viewport", "closeOnAnchorClick": "Dropdown will be closed when anchor is clicked",