Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
539da395
Commit
539da395
authored
May 06, 2020
by
Lyza Danger Gardner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `aria-label` where appropriate to `<button>` elements
parent
63559b98
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
6 deletions
+12
-6
adder-toolbar.js
src/annotator/components/adder-toolbar.js
+1
-0
annotation-publish-control.js
src/sidebar/components/annotation-publish-control.js
+1
-0
markdown-editor.js
src/sidebar/components/markdown-editor.js
+1
-0
menu.js
src/sidebar/components/menu.js
+1
-0
moderation-banner.js
src/sidebar/components/moderation-banner.js
+7
-6
tag-editor.js
src/sidebar/components/tag-editor.js
+1
-0
No files found.
src/annotator/components/adder-toolbar.js
View file @
539da395
...
...
@@ -14,6 +14,7 @@ function ToolbarButton({ badgeCount, icon, label, onClick, shortcut }) {
<
button
className
=
"annotator-adder-actions__button"
onClick
=
{
onClick
}
aria
-
label
=
{
title
}
title
=
{
title
}
>
{
icon
&&
<
SvgIcon
name
=
{
icon
}
/>
}
...
...
src/sidebar/components/annotation-publish-control.js
View file @
539da395
...
...
@@ -70,6 +70,7 @@ function AnnotationPublishControl({
style
=
{
applyTheme
(
themeProps
,
settings
)}
onClick
=
{
onSave
}
disabled
=
{
isDisabled
}
aria
-
label
=
{
`Publish this annotation to
${
publishDestination
}
`
}
title
=
{
`Publish this annotation to
${
publishDestination
}
`
}
>
Post
to
{
publishDestination
}
...
...
src/sidebar/components/markdown-editor.js
View file @
539da395
...
...
@@ -119,6 +119,7 @@ function ToolbarButton({
)}
disabled
=
{
disabled
}
onClick
=
{
onClick
}
aria
-
label
=
{
tooltip
}
title
=
{
tooltip
}
tabIndex
=
{
tabIndex
}
ref
=
{
buttonRef
}
...
...
src/sidebar/components/menu.js
View file @
539da395
...
...
@@ -148,6 +148,7 @@ export default function Menu({
className
=
"menu__toggle"
onMouseDown
=
{
toggleMenu
}
onClick
=
{
toggleMenu
}
aria
-
label
=
{
title
}
title
=
{
title
}
>
<
span
...
...
src/sidebar/components/moderation-banner.js
View file @
539da395
...
...
@@ -51,15 +51,16 @@ function ModerationBanner({ annotation, api, toastMessenger }) {
};
const
toggleButtonProps
=
(()
=>
{
const
p
rops
=
{};
const
buttonP
rops
=
{};
if
(
annotation
.
hidden
)
{
p
rops
.
onClick
=
unhideAnnotation
;
p
rops
.
title
=
'Make this annotation visible to everyone'
;
buttonP
rops
.
onClick
=
unhideAnnotation
;
buttonP
rops
.
title
=
'Make this annotation visible to everyone'
;
}
else
{
p
rops
.
onClick
=
hideAnnotation
;
p
rops
.
title
=
'Hide this annotation from non-moderators'
;
buttonP
rops
.
onClick
=
hideAnnotation
;
buttonP
rops
.
title
=
'Hide this annotation from non-moderators'
;
}
return
props
;
buttonProps
[
'aria-label'
]
=
buttonProps
.
title
;
return
buttonProps
;
})();
const
bannerClasses
=
classnames
(
'moderation-banner'
,
{
...
...
src/sidebar/components/tag-editor.js
View file @
539da395
...
...
@@ -239,6 +239,7 @@ function TagEditor({ onEditTags, tags: tagsService, tagList }) {
onClick
=
{()
=>
{
removeTag
(
tag
);
}}
aria
-
label
=
{
`Remove Tag:
${
tag
}
`
}
title
=
{
`Remove Tag:
${
tag
}
`
}
className
=
"tag-editor__delete"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment