From 89521fdbc3ca53a69ce3fc0a2cfacabd4e62dceb Mon Sep 17 00:00:00 2001 From: Kristof Csillag Date: Fri, 29 Aug 2025 11:27:26 +0200 Subject: [PATCH 1/2] Solve warning about missing dialog title n the layout picker, we are using a Drawer component, which is using Radix's Dialog under the hood. On the browser console, there was a message: > `DialogContent` requires a `DialogTitle` > for the component to be accessible for screen reader users. etc. This change fixes that, by wrapping the already existing app logo with the required DrawerTitle tag. --- .changelog/2168.internal.md | 1 + src/app/components/LayerPicker/index.tsx | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .changelog/2168.internal.md diff --git a/.changelog/2168.internal.md b/.changelog/2168.internal.md new file mode 100644 index 0000000000..934f9783a1 --- /dev/null +++ b/.changelog/2168.internal.md @@ -0,0 +1 @@ +Solve warning about missing dialog title diff --git a/src/app/components/LayerPicker/index.tsx b/src/app/components/LayerPicker/index.tsx index 9427bad574..936b873d2e 100644 --- a/src/app/components/LayerPicker/index.tsx +++ b/src/app/components/LayerPicker/index.tsx @@ -2,7 +2,7 @@ import { FC, useState } from 'react' import { useTranslation } from 'react-i18next' import Box from '@mui/material/Box' import Button from '@mui/material/Button' -import { Drawer, DrawerContent } from '@oasisprotocol/ui-library/src/components/ui/drawer' +import { Drawer, DrawerContent, DrawerTitle } from '@oasisprotocol/ui-library/src' import { Separator } from '@oasisprotocol/ui-library/src/components/ui/separator' import Grid from '@mui/material/Unstable_Grid2' import { HomePageLink } from '../PageLayout/Logotype' @@ -106,9 +106,11 @@ const LayerPickerContent: FC = ({ isOutOfDate, onClose, return ( - - - + + + + + {isTablet && (
From 4e18ced065a4b8e19f263ea991dbc9dd3c125bf2 Mon Sep 17 00:00:00 2001 From: Kristof Csillag Date: Thu, 4 Sep 2025 19:03:29 +0200 Subject: [PATCH 2/2] Bump UI-Library to latest version --- ui-library | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-library b/ui-library index 35b987361a..8562326768 160000 --- a/ui-library +++ b/ui-library @@ -1 +1 @@ -Subproject commit 35b987361a6a6286d4c0eb1f5aa7d3ca92d3057f +Subproject commit 856232676828081ba9a806d9d9646b4f41668112