Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Feb 12, 2021
1 parent 3e258b6 commit d6bdb2d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ function BlogPostItem(props: Props): JSX.Element {
<div className="col">
<strong>
<Translate
id="theme.BlogPostItem.tags"
description="The label used in blog post item for output tags list">
Tags
id="theme.common.tags"
description="The label used during output tags list">
Tags:
</Translate>
</strong>
{tags.map(({label, permalink: tagPermalink}) => (
Expand Down
14 changes: 3 additions & 11 deletions packages/docusaurus-theme-classic/src/theme/DocPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ function DocPageContent({
<div
className={styles.collapsedDocSidebar}
title={translate({
id: 'theme.DocPageContent.expandButtonLabel',
id: 'theme.docs.expandButtonTitle',
message: 'Expand sidebar',
description:
'The ARIA label and title attribute for expand button of doc sidebar',
})}
aria-label={translate({
id: 'theme.DocPageContent.expandButtonLabel',
id: 'theme.docs.expandButtonAriaLabel',
message: 'Expand sidebar',
description:
'The ARIA label and title attribute for expand button of doc sidebar',
Expand All @@ -110,15 +110,7 @@ function DocPageContent({
role="button"
onKeyDown={toggleSidebar}
onClick={toggleSidebar}>
<IconArrow
aria-label={translate({
id: 'theme.DocPageContent.expandButtonLabel',
message: 'Expand sidebar',
description:
'The ARIA label and title attribute for expand button of doc sidebar',
})}
className={styles.expandSidebarButtonIcon}
/>
<IconArrow className={styles.expandSidebarButtonIcon} />
</div>
)}
</div>
Expand Down
14 changes: 3 additions & 11 deletions packages/docusaurus-theme-classic/src/theme/DocSidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,13 +286,13 @@ function DocSidebar({
<button
type="button"
title={translate({
id: 'theme.DocSidebar.collapseButtonLabel',
id: 'theme.docs.collapseButtonTitle',
message: 'Collapse sidebar',
description:
'The ARIA label and title attribute for collapse button of doc sidebar',
})}
aria-label={translate({
id: 'theme.DocSidebar.collapseButtonLabel',
id: 'theme.docs.collapseButtonAriaLabel',
message: 'Collapse sidebar',
description:
'The ARIA label and title attribute for collapse button of doc sidebar',
Expand All @@ -302,15 +302,7 @@ function DocSidebar({
styles.collapseSidebarButton,
)}
onClick={onCollapse}>
<IconArrow
className={styles.collapseSidebarButtonIcon}
aria-label={translate({
id: 'theme.DocSidebar.collapseButtonLabel',
message: 'Collapse sidebar',
description:
'The ARIA label and title attribute for collapse button of doc sidebar',
})}
/>
<IconArrow className={styles.collapseSidebarButtonIcon} />
</button>
)}
</div>
Expand Down

0 comments on commit d6bdb2d

Please sign in to comment.