Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9c31653f
Commit
9c31653f
authored
Mar 03, 2020
by
Dave Pisek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enrich aria-labels to increase accessibility
parent
517c385b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
20 deletions
+22
-20
ee/app/assets/javascripts/security_configuration/components/app.vue
...ets/javascripts/security_configuration/components/app.vue
+9
-2
ee/spec/frontend/security_configuration/components/__snapshots__/app_spec.js.snap
...y_configuration/components/__snapshots__/app_spec.js.snap
+8
-13
locale/gitlab.pot
locale/gitlab.pot
+5
-5
No files found.
ee/app/assets/javascripts/security_configuration/components/app.vue
View file @
9c31653f
<
script
>
import
{
GlLink
}
from
'
@gitlab/ui
'
;
import
{
__
,
sprintf
}
from
'
~/locale
'
;
import
{
s__
,
__
,
sprintf
}
from
'
~/locale
'
;
import
Icon
from
'
~/vue_shared/components/icon.vue
'
;
export
default
{
...
...
@@ -71,6 +71,13 @@ export default {
return
sprintf
(
body
,
{
linkStart
,
linkEnd
},
false
);
},
},
methods
:
{
getFeatureDocumentationLinkLabel
(
featureName
)
{
return
sprintf
(
s__
(
'
SecurityConfiguration|Feature documentation for %{featureName}
'
),
{
featureName
,
});
},
},
};
</
script
>
...
...
@@ -125,7 +132,7 @@ export default {
<gl-link
target=
"_blank"
:href=
"feature.link"
:aria-label=
"
s__('SecurityConfiguration|Feature documentation'
)"
:aria-label=
"
getFeatureDocumentationLinkLabel(feature.name
)"
>
{{
__
(
'
More information
'
)
}}
</gl-link
>
</div>
...
...
ee/spec/frontend/security_configuration/components/__snapshots__/app_spec.js.snap
View file @
9c31653f
...
...
@@ -54,18 +54,6 @@ exports[`Security Configuration App features table displays a given feature 1`]
name-feature-0
</div>
<gl-link-stub
aria-label="Feature documentation"
class="d-inline-flex ml-1"
href="link-feature-0"
target="_blank"
>
<icon-stub
name="external-link"
size="16"
/>
</gl-link-stub>
</div>
<div
...
...
@@ -73,7 +61,14 @@ exports[`Security Configuration App features table displays a given feature 1`]
>
description-feature-0
<gl-link-stub
aria-label="Feature documentation for name-feature-0"
href="link-feature-0"
target="_blank"
>
More information
</gl-link-stub>
</div>
</div>
</div>
...
...
locale/gitlab.pot
View file @
9c31653f
...
...
@@ -2026,10 +2026,10 @@ msgstr ""
msgid "Analyze a review version of your web application."
msgstr ""
msgid "Analyze your dependencies for known vulnerabilities"
msgid "Analyze your dependencies for known vulnerabilities
.
"
msgstr ""
msgid "Analyze your source code for known vulnerabilities"
msgid "Analyze your source code for known vulnerabilities
.
"
msgstr ""
msgid "Ancestors"
...
...
@@ -3460,7 +3460,7 @@ msgstr ""
msgid "Check your .gitlab-ci.yml"
msgstr ""
msgid "Check your Docker images for known vulnerabilities"
msgid "Check your Docker images for known vulnerabilities
.
"
msgstr ""
msgid "Checking %{text} availability…"
...
...
@@ -17082,7 +17082,7 @@ msgstr ""
msgid "Search users or groups"
msgstr ""
msgid "Search your project dependencies for their licenses and apply policies"
msgid "Search your project dependencies for their licenses and apply policies
.
"
msgstr ""
msgid "Search your projects"
...
...
@@ -17308,7 +17308,7 @@ msgstr ""
msgid "SecurityConfiguration|Feature"
msgstr ""
msgid "SecurityConfiguration|Feature documentation"
msgid "SecurityConfiguration|Feature documentation
for %{featureName}
"
msgstr ""
msgid "SecurityConfiguration|Not yet configured"
...
...
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