From 33fe6a7ef3f9f00a2a40b59b21e65165c6624959 Mon Sep 17 00:00:00 2001 From: literat Date: Thu, 7 Sep 2023 13:38:21 +0200 Subject: [PATCH] Refactor(web-twig): Use `VisuallyHidden` component instead of className --- .../components/FileUploader/FileUploaderAttachment.twig | 4 ++-- .../Resources/components/Header/HeaderDialogCloseButton.twig | 2 +- .../src/Resources/components/Header/HeaderMobileActions.twig | 2 +- .../web-twig/src/Resources/components/Modal/ModalHeader.twig | 2 +- .../src/Resources/components/Pagination/PaginationLink.twig | 2 +- .../Resources/components/Pagination/PaginationLinkNext.twig | 2 +- .../components/Pagination/PaginationLinkPrevious.twig | 2 +- .../web-twig/src/Resources/components/Tooltip/Tooltip.twig | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/web-twig/src/Resources/components/FileUploader/FileUploaderAttachment.twig b/packages/web-twig/src/Resources/components/FileUploader/FileUploaderAttachment.twig index d2a4199dbf..875c2309ec 100644 --- a/packages/web-twig/src/Resources/components/FileUploader/FileUploaderAttachment.twig +++ b/packages/web-twig/src/Resources/components/FileUploader/FileUploaderAttachment.twig @@ -45,7 +45,7 @@ {% if _onEdit %} @@ -55,7 +55,7 @@ class="{{ _removeClassName }}" data-spirit-populate-field="button" > - {{ _removeText }} + {{ _removeText }} diff --git a/packages/web-twig/src/Resources/components/Header/HeaderDialogCloseButton.twig b/packages/web-twig/src/Resources/components/Header/HeaderDialogCloseButton.twig index ece011037d..0518c12010 100644 --- a/packages/web-twig/src/Resources/components/Header/HeaderDialogCloseButton.twig +++ b/packages/web-twig/src/Resources/components/Header/HeaderDialogCloseButton.twig @@ -22,5 +22,5 @@ aria-expanded="false" > - {{ _label }} + {{ _label }} diff --git a/packages/web-twig/src/Resources/components/Header/HeaderMobileActions.twig b/packages/web-twig/src/Resources/components/Header/HeaderMobileActions.twig index 1076bacd40..35cc17a2fd 100644 --- a/packages/web-twig/src/Resources/components/Header/HeaderMobileActions.twig +++ b/packages/web-twig/src/Resources/components/Header/HeaderMobileActions.twig @@ -21,6 +21,6 @@ isSquare > - {{ _menuToggleLabel }} + {{ _menuToggleLabel }} diff --git a/packages/web-twig/src/Resources/components/Modal/ModalHeader.twig b/packages/web-twig/src/Resources/components/Modal/ModalHeader.twig index e86bd8cd9f..f549ff838c 100644 --- a/packages/web-twig/src/Resources/components/Modal/ModalHeader.twig +++ b/packages/web-twig/src/Resources/components/Modal/ModalHeader.twig @@ -38,6 +38,6 @@ isSquare > - {{ _closeLabel }} + {{ _closeLabel }} diff --git a/packages/web-twig/src/Resources/components/Pagination/PaginationLink.twig b/packages/web-twig/src/Resources/components/Pagination/PaginationLink.twig index 63f142a3df..878246c509 100644 --- a/packages/web-twig/src/Resources/components/Pagination/PaginationLink.twig +++ b/packages/web-twig/src/Resources/components/Pagination/PaginationLink.twig @@ -30,6 +30,6 @@ {{ _targetAttr }} {{ _typeAttr | raw }} > - {{ _accessibilityLabel }} + {{ _accessibilityLabel }} diff --git a/packages/web-twig/src/Resources/components/Pagination/PaginationLinkNext.twig b/packages/web-twig/src/Resources/components/Pagination/PaginationLinkNext.twig index 8f4469b41d..cf5c4e62af 100644 --- a/packages/web-twig/src/Resources/components/Pagination/PaginationLinkNext.twig +++ b/packages/web-twig/src/Resources/components/Pagination/PaginationLinkNext.twig @@ -18,6 +18,6 @@ }) } %} {% block content %} - {{ _accessibilityLabel }} + {{ _accessibilityLabel }} {% endblock %} {% endembed %} diff --git a/packages/web-twig/src/Resources/components/Pagination/PaginationLinkPrevious.twig b/packages/web-twig/src/Resources/components/Pagination/PaginationLinkPrevious.twig index 68671528fa..0f1e4ff819 100644 --- a/packages/web-twig/src/Resources/components/Pagination/PaginationLinkPrevious.twig +++ b/packages/web-twig/src/Resources/components/Pagination/PaginationLinkPrevious.twig @@ -18,6 +18,6 @@ }) } %} {% block content %} - {{ _accessibilityLabel }} + {{ _accessibilityLabel }} {% endblock %} {% endembed %} diff --git a/packages/web-twig/src/Resources/components/Tooltip/Tooltip.twig b/packages/web-twig/src/Resources/components/Tooltip/Tooltip.twig index c8493e3e1d..ef3a805935 100644 --- a/packages/web-twig/src/Resources/components/Tooltip/Tooltip.twig +++ b/packages/web-twig/src/Resources/components/Tooltip/Tooltip.twig @@ -39,7 +39,7 @@ aria-expanded="true" >