From 321478682ca661c58f3fbc323fbbf49c92959a45 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Tue, 26 Mar 2024 14:08:56 +1100 Subject: [PATCH] fix: wrap radiobutton in buttons to focus is visible --- ts/components/SessionWrapperModal.tsx | 8 ++- ts/components/basic/SessionButton.tsx | 4 -- ts/components/basic/SessionRadio.tsx | 66 ++++++++++++------------ ts/components/icon/SessionIconButton.tsx | 4 -- 4 files changed, 38 insertions(+), 44 deletions(-) diff --git a/ts/components/SessionWrapperModal.tsx b/ts/components/SessionWrapperModal.tsx index fd2aaef87..48e53219c 100644 --- a/ts/components/SessionWrapperModal.tsx +++ b/ts/components/SessionWrapperModal.tsx @@ -64,14 +64,18 @@ export const SessionWrapperModal = (props: SessionWrapperModalType) => { }; return ( - +
{/* FocusTrap needs a button always mounted as a start, which is apparently not our case */} - ); }; diff --git a/ts/components/icon/SessionIconButton.tsx b/ts/components/icon/SessionIconButton.tsx index 2370da9d8..584dba0e7 100644 --- a/ts/components/icon/SessionIconButton.tsx +++ b/ts/components/icon/SessionIconButton.tsx @@ -37,10 +37,6 @@ const StyledSessionIconButton = styled.button<{ color?: string; isSelected?: boo &:hover svg path { ${props => !props.color && 'fill: var(--button-icon-stroke-hover-color);'} } - - :focus-within { - outline: 1px var(--primary-color) dashed; - } `; // eslint-disable-next-line react/display-name