From d19b59e0b1f9cc6131da037813e1d04ac1e198e8 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 refs #DS-926 --- .../src/Resources/components/FieldGroup/FieldGroup.twig | 4 ++-- .../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 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/web-twig/src/Resources/components/FieldGroup/FieldGroup.twig b/packages/web-twig/src/Resources/components/FieldGroup/FieldGroup.twig index ea1f1b3131..19e08b0880 100644 --- a/packages/web-twig/src/Resources/components/FieldGroup/FieldGroup.twig +++ b/packages/web-twig/src/Resources/components/FieldGroup/FieldGroup.twig @@ -55,9 +55,9 @@ {{ _disabledAttr }} > {% if _labelRendered %} - + {{- _labelRendered -}} - + {% if not _isLabelHidden %} 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" >