From afa762bbae10e2877c4a888218f8a85c2ebf87ab 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/Button/stories/ButtonColorsSizes.twig | 2 +- .../Resources/components/Button/stories/ButtonDisabled.twig | 2 +- .../components/ButtonLink/stories/ButtonLinkColorsSizes.twig | 2 +- .../components/ButtonLink/stories/ButtonLinkDisabled.twig | 2 +- .../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 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/web-twig/src/Resources/components/Button/stories/ButtonColorsSizes.twig b/packages/web-twig/src/Resources/components/Button/stories/ButtonColorsSizes.twig index 1a35473464..4a11c7c007 100644 --- a/packages/web-twig/src/Resources/components/Button/stories/ButtonColorsSizes.twig +++ b/packages/web-twig/src/Resources/components/Button/stories/ButtonColorsSizes.twig @@ -11,7 +11,7 @@ Menu diff --git a/packages/web-twig/src/Resources/components/Button/stories/ButtonDisabled.twig b/packages/web-twig/src/Resources/components/Button/stories/ButtonDisabled.twig index 7702cd0245..472c421ba5 100644 --- a/packages/web-twig/src/Resources/components/Button/stories/ButtonDisabled.twig +++ b/packages/web-twig/src/Resources/components/Button/stories/ButtonDisabled.twig @@ -11,7 +11,7 @@ Menu diff --git a/packages/web-twig/src/Resources/components/ButtonLink/stories/ButtonLinkColorsSizes.twig b/packages/web-twig/src/Resources/components/ButtonLink/stories/ButtonLinkColorsSizes.twig index acd8e6e5f5..31b4049280 100644 --- a/packages/web-twig/src/Resources/components/ButtonLink/stories/ButtonLinkColorsSizes.twig +++ b/packages/web-twig/src/Resources/components/ButtonLink/stories/ButtonLinkColorsSizes.twig @@ -10,7 +10,7 @@
Button {{ color }} - Menu + Menu
diff --git a/packages/web-twig/src/Resources/components/ButtonLink/stories/ButtonLinkDisabled.twig b/packages/web-twig/src/Resources/components/ButtonLink/stories/ButtonLinkDisabled.twig index 457964abe4..08f039f092 100644 --- a/packages/web-twig/src/Resources/components/ButtonLink/stories/ButtonLinkDisabled.twig +++ b/packages/web-twig/src/Resources/components/ButtonLink/stories/ButtonLinkDisabled.twig @@ -10,7 +10,7 @@
Disabled {{ color }} - Menu + Menu
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" >