From 46d85c5b9128654b81a0ec0ba15ae19d55c70d97 Mon Sep 17 00:00:00 2001 From: Nils Date: Mon, 4 Nov 2024 15:13:56 +0100 Subject: [PATCH 1/5] migrate mt-field-error to custom i18n --- .../mt-field-error/mt-field-error.vue | 102 +++++++++--------- 1 file changed, 50 insertions(+), 52 deletions(-) diff --git a/packages/component-library/src/components/form/_internal/mt-field-error/mt-field-error.vue b/packages/component-library/src/components/form/_internal/mt-field-error/mt-field-error.vue index d9c7c26df..2f92f5bad 100644 --- a/packages/component-library/src/components/form/_internal/mt-field-error/mt-field-error.vue +++ b/packages/component-library/src/components/form/_internal/mt-field-error/mt-field-error.vue @@ -13,52 +13,14 @@ From d378d6817487a958cb080190d0f1298b5b177752 Mon Sep 17 00:00:00 2001 From: Nils Date: Mon, 4 Nov 2024 15:16:50 +0100 Subject: [PATCH 2/5] migrate mt-field-error to composition api --- .../mt-field-error/mt-field-error.vue | 109 ++++++++---------- 1 file changed, 46 insertions(+), 63 deletions(-) diff --git a/packages/component-library/src/components/form/_internal/mt-field-error/mt-field-error.vue b/packages/component-library/src/components/form/_internal/mt-field-error/mt-field-error.vue index 2f92f5bad..5daebc71a 100644 --- a/packages/component-library/src/components/form/_internal/mt-field-error/mt-field-error.vue +++ b/packages/component-library/src/components/form/_internal/mt-field-error/mt-field-error.vue @@ -12,78 +12,61 @@ - From a1af05f456e718793ba5953bdcf035313f38e3f6 Mon Sep 17 00:00:00 2001 From: Nils Date: Mon, 4 Nov 2024 15:19:53 +0100 Subject: [PATCH 3/5] migrate mt-field-error over to plain css --- .../_internal/mt-field-error/mt-field-error.vue | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/packages/component-library/src/components/form/_internal/mt-field-error/mt-field-error.vue b/packages/component-library/src/components/form/_internal/mt-field-error/mt-field-error.vue index 5daebc71a..e6b696dce 100644 --- a/packages/component-library/src/components/form/_internal/mt-field-error/mt-field-error.vue +++ b/packages/component-library/src/components/form/_internal/mt-field-error/mt-field-error.vue @@ -1,14 +1,15 @@ @@ -71,17 +72,12 @@ const { t } = useI18n({ }); - From ed03f658c81b9a83b9597e0ba804024d7cd6c095 Mon Sep 17 00:00:00 2001 From: Nils Date: Mon, 4 Nov 2024 15:23:48 +0100 Subject: [PATCH 4/5] improve accessibility of the mt-field-error --- .changeset/rude-shoes-rush.md | 5 +++++ .../form/_internal/mt-field-error/mt-field-error.vue | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .changeset/rude-shoes-rush.md diff --git a/.changeset/rude-shoes-rush.md b/.changeset/rude-shoes-rush.md new file mode 100644 index 000000000..36ec2ecf0 --- /dev/null +++ b/.changeset/rude-shoes-rush.md @@ -0,0 +1,5 @@ +--- +"@shopware-ag/meteor-component-library": patch +--- + +Improve accessibility of mt-field-error diff --git a/packages/component-library/src/components/form/_internal/mt-field-error/mt-field-error.vue b/packages/component-library/src/components/form/_internal/mt-field-error/mt-field-error.vue index e6b696dce..09bfcf57b 100644 --- a/packages/component-library/src/components/form/_internal/mt-field-error/mt-field-error.vue +++ b/packages/component-library/src/components/form/_internal/mt-field-error/mt-field-error.vue @@ -5,9 +5,8 @@ size="2xs" color="color-text-critical-default" class="mt-field__error" - aria-label="Error message" > - +