The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
GDGT-2478 Translate PasswordInput toggle label at call time (#82338)
Anna Tomka5b7c89d8ee4c
diff --git a/.loki/reference/chrome_laptop_Components_Inputs_PasswordInput_Overview.png b/.loki/reference/chrome_laptop_Components_Inputs_PasswordInput_Overview.pngindex b50c86c089b..5b5a6308b1c 100644Binary files a/.loki/reference/chrome_laptop_Components_Inputs_PasswordInput_Overview.png and b/.loki/reference/chrome_laptop_Components_Inputs_PasswordInput_Overview.png differdiff --git a/frontend/src/metabase/ui/components/inputs/PasswordInput/PasswordInput.config.tsx b/frontend/src/metabase/ui/components/inputs/PasswordInput/PasswordInput.config.tsxindex 56fdf653393..c51fbc21e94 100644--- a/frontend/src/metabase/ui/components/inputs/PasswordInput/PasswordInput.config.tsx+++ b/frontend/src/metabase/ui/components/inputs/PasswordInput/PasswordInput.config.tsx@@ -31,8 +31,9 @@ export const passwordInputOverrides = {},visibilityToggleIcon: VisibilityToggleIcon,visibilityToggleButtonProps: {- // eslint-disable-next-line ttag/no-module-declaration- "aria-label": t`Toggle password visibility`,+ get "aria-label"() {+ return t`Toggle password visibility`;+ },variant: "transparent",},},