diff --git a/app/components/DocumentCard.tsx b/app/components/DocumentCard.tsx index 2c89b96ec..7fce7b7bb 100644 --- a/app/components/DocumentCard.tsx +++ b/app/components/DocumentCard.tsx @@ -108,7 +108,7 @@ function DocumentCard(props: Props) { {!isDragging && pin && ( - + diff --git a/app/components/DocumentListItem.tsx b/app/components/DocumentListItem.tsx index 4deb1e455..c5a9e3960 100644 --- a/app/components/DocumentListItem.tsx +++ b/app/components/DocumentListItem.tsx @@ -78,6 +78,7 @@ function DocumentListItem( as={DocumentLink} ref={ref} dir={document.dir} + role="menuitem" $isStarred={document.isStarred} $menuOpen={menuOpen} to={{ diff --git a/app/components/Sidebar/App.tsx b/app/components/Sidebar/App.tsx index 3233b5479..fc5ea7b4d 100644 --- a/app/components/Sidebar/App.tsx +++ b/app/components/Sidebar/App.tsx @@ -60,7 +60,12 @@ function AppSidebar() { {...props} title={team.name} image={ - + } showDisclosure /> diff --git a/app/components/Sidebar/Sidebar.tsx b/app/components/Sidebar/Sidebar.tsx index 718380a4e..4a08ceb5f 100644 --- a/app/components/Sidebar/Sidebar.tsx +++ b/app/components/Sidebar/Sidebar.tsx @@ -177,6 +177,7 @@ const Sidebar = React.forwardRef( title={user.name} image={ + ); diff --git a/app/editor/components/CommandMenu.tsx b/app/editor/components/CommandMenu.tsx index fa3ec3c5e..0d87a0b89 100644 --- a/app/editor/components/CommandMenu.tsx +++ b/app/editor/components/CommandMenu.tsx @@ -2,6 +2,7 @@ import { capitalize } from "lodash"; import { findDomRefAtPos, findParentNode } from "prosemirror-utils"; import { EditorView } from "prosemirror-view"; import * as React from "react"; +import { Trans } from "react-i18next"; import { Portal } from "react-portal"; import { VisuallyHidden } from "reakit/VisuallyHidden"; import styled from "styled-components"; @@ -545,11 +546,14 @@ class CommandMenu extends React.Component, State> { )} {uploadFile && ( - + )} diff --git a/app/menus/CollectionMenu.tsx b/app/menus/CollectionMenu.tsx index 9ad476231..4699eac1c 100644 --- a/app/menus/CollectionMenu.tsx +++ b/app/menus/CollectionMenu.tsx @@ -238,14 +238,17 @@ function CollectionMenu({ return ( <> - + {label ? ( {label} diff --git a/app/menus/DocumentMenu.tsx b/app/menus/DocumentMenu.tsx index 5c7d860d3..3e15da9b6 100644 --- a/app/menus/DocumentMenu.tsx +++ b/app/menus/DocumentMenu.tsx @@ -258,14 +258,17 @@ function DocumentMenu({ return ( <> - + {label ? ( {label} diff --git a/app/scenes/Collection/Actions.tsx b/app/scenes/Collection/Actions.tsx index b85c5d646..fe22705b7 100644 --- a/app/scenes/Collection/Actions.tsx +++ b/app/scenes/Collection/Actions.tsx @@ -62,6 +62,7 @@ function Actions({ collection }: Props) { placement="bottom-end" label={(props) => (