From 36bf413305fc8db94983ad4c2d5157c3141c2df4 Mon Sep 17 00:00:00 2001 From: Divyajose <75604843+divya-intelli@users.noreply.github.com> Date: Mon, 19 Feb 2024 19:14:07 +0530 Subject: [PATCH] Replacement for deprecated class sr-only (#680) --- .../apigee_kickstart/src/sass/form/_form.search-form.scss | 2 +- themes/custom/apigee_kickstart/src/sass/page/_page.search.scss | 2 +- .../templates/block/block--system-menu-block.html.twig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/custom/apigee_kickstart/src/sass/form/_form.search-form.scss b/themes/custom/apigee_kickstart/src/sass/form/_form.search-form.scss index 71cd711e..1a1065bf 100644 --- a/themes/custom/apigee_kickstart/src/sass/form/_form.search-form.scss +++ b/themes/custom/apigee_kickstart/src/sass/form/_form.search-form.scss @@ -6,7 +6,7 @@ form.search-form { font-size: 0.875rem; .search-help-link { - @include visually-hidden(); + @include visually-hidden; } fieldset { diff --git a/themes/custom/apigee_kickstart/src/sass/page/_page.search.scss b/themes/custom/apigee_kickstart/src/sass/page/_page.search.scss index e45d997d..ef09bcf7 100644 --- a/themes/custom/apigee_kickstart/src/sass/page/_page.search.scss +++ b/themes/custom/apigee_kickstart/src/sass/page/_page.search.scss @@ -34,7 +34,7 @@ } .page__content > h2 { - @include visually-hidden(); + @include visually-hidden; } } diff --git a/themes/custom/apigee_kickstart/templates/block/block--system-menu-block.html.twig b/themes/custom/apigee_kickstart/templates/block/block--system-menu-block.html.twig index 93ac4865..e7bbfdbe 100644 --- a/themes/custom/apigee_kickstart/templates/block/block--system-menu-block.html.twig +++ b/themes/custom/apigee_kickstart/templates/block/block--system-menu-block.html.twig @@ -5,7 +5,7 @@ */ #} -{% set title_attributes = title_attributes.setAttribute('class', ['sr-only', 'd-none']) %} +{% set title_attributes = title_attributes.setAttribute('class', ['visually-hidden']) %} {% include '@radix/block/block.twig' with { html_tag: 'div',