Skip to content

Commit

Permalink
Fix labeled sidebar accessibility (#322)
Browse files Browse the repository at this point in the history
Co-authored-by: Kyler Berry <[email protected]>
  • Loading branch information
kylerberry and kylerberry authored Jul 31, 2023
1 parent 7e35b20 commit 294fcb6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Sidebar/Sidebar.minors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { ActiveStyles, ItemPropsIntrinsic } from './Sidebar.types';
import { Button } from '../Button/Button';
import { Tip } from '../Tip/Tip';
import { core } from '../../tokens';
import { Focus } from '../../utils';

export function Item({
attach = 'right',
Expand Down Expand Up @@ -111,6 +112,11 @@ const ItemLabelledStyled = styled(Button)<{
line-height: initial;
white-space: initial;
}
> ${Focus} {
// Accounts for the negative side margin, causing the focus ring to not be visible
border-width: 0.4rem;
}
`;

export const Break = styled.div`
Expand Down

0 comments on commit 294fcb6

Please sign in to comment.