From 4ab53ccb2cb55e32c5fbbc56dd86914edee6280e Mon Sep 17 00:00:00 2001 From: Denise Li Date: Mon, 16 Sep 2024 16:29:35 -0400 Subject: [PATCH] chore: remove some screenreader support that had upset the linter (#2696) Removes the 2 `sr-only` elements that caused lint errors in https://github.com/TBD54566975/ftl/pull/2676. The changes suggested by the linter weren't really quite exactly correct either, and we aren't formally supporting screenreaders in the console anyway, so we can just remove it. --- frontend/console/src/components/Loader.tsx | 35 +++++++++---------- .../src/layout/navigation/SearchInput.tsx | 3 -- 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/frontend/console/src/components/Loader.tsx b/frontend/console/src/components/Loader.tsx index ac28734426..2569ca6562 100644 --- a/frontend/console/src/components/Loader.tsx +++ b/frontend/console/src/components/Loader.tsx @@ -1,23 +1,20 @@ export const Loader = () => { return ( - - - Loading... - + ) } diff --git a/frontend/console/src/layout/navigation/SearchInput.tsx b/frontend/console/src/layout/navigation/SearchInput.tsx index 96989ae1df..5b2a0e707b 100644 --- a/frontend/console/src/layout/navigation/SearchInput.tsx +++ b/frontend/console/src/layout/navigation/SearchInput.tsx @@ -27,9 +27,6 @@ export const SearchInput: React.FC = ({ onFocus }) => { return (
-