From 1e8cb2f9181b0818435604d32ca764074347b1e1 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 5df5585fcc17e25c8267974f22742c5e3eca91b5 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 29a9334f49d27798d1a1c8e2fa8edb6feaf47c6e 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 7ca86a27d61627710f577684911b95779a2c84c0 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" > - +