Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to
- ♿(frontend) use aria-haspopup menu on DropButton triggers #2126
- ♿️(frontend) add contextual browser tab titles for docs routes #2120
- ♿️(frontend) fix empty heading before section titles in HTML export #2125
- 💄(frontend) Use StyledLink for sub doc tree #2100

### Fixed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import { useTranslation } from 'react-i18next';
import { css } from 'styled-components';

import { Box, BoxButton, Icon, Text } from '@/components';
import { Box, Icon, StyledLink, Text } from '@/components';
import { useCunninghamTheme } from '@/cunningham';
import {
Doc,
Expand Down Expand Up @@ -279,27 +279,25 @@
buttonOptionRef={buttonOptionRef}
/>
</Box>
<BoxButton
<StyledLink
href={`/docs/${doc.id}`}
onClick={(e) => {
e.stopPropagation();
e.preventDefault();
handleActivate();
}}
tabIndex={-1}
$width="100%"
$direction="row"
$gap={spacingsTokens['xs']}
$align="center"
$minHeight="24px"
data-testid={`doc-sub-page-item-${doc.id}`}
aria-label={`${t('Open document {{title}}', { title: docTitle })}`}
$css={css`
text-align: left;
min-width: 0;
width: 100%;

Check failure on line 293 in src/frontend/apps/impress/src/features/docs/doc-tree/components/DocSubPageItem.tsx

View workflow job for this annotation

GitHub Actions / lint-front

Delete `··`
`}
>
<Box
$direction="row"
$align="center"
$gap={spacingsTokens['xs']}
$minHeight="24px"
$css={css`
display: flex;
flex-direction: row;
Expand All @@ -322,7 +320,7 @@
/>
)}
</Box>
</BoxButton>
</StyledLink>
</TreeViewItem>
</Box>
);
Expand Down
Loading