Skip to content

Commit 96c12f8

Browse files
committed
♿️(frontend) use semantic <p> elements in document info card
Wrap role and last-update text in DocHeaderInfo with <p> for assistive technologies.
1 parent 31588ac commit 96c12f8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/frontend/apps/impress/src/features/docs/doc-header/components/DocHeaderInfo.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,21 @@ export const DocHeaderInfo = ({ doc }: DocHeaderInfoProps) => {
4040
}
4141

4242
return (
43-
<Box $direction="row">
43+
<Box $direction="row" $align="center">
4444
<Text
45+
as="p"
4546
$variation="tertiary"
4647
$size="s"
4748
$weight="bold"
4849
$theme={isEditable ? 'neutral' : 'warning'}
4950
$direction="row"
51+
$margin="0"
5052
>
5153
<VisibilityDoc doc={doc} />
5254
{transRole(isEditable ? doc.user_role || doc.link_role : Role.READER)}
5355
&nbsp;·&nbsp;
5456
</Text>
55-
<Text $variation="tertiary" $size="s">
57+
<Text as="p" $variation="tertiary" $size="s" $margin="0">
5658
{dateToDisplay}
5759
</Text>
5860
</Box>

0 commit comments

Comments
 (0)