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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
c2fc50c2
Commit
c2fc50c2
authored
Mar 23, 2017
by
Kushal Pandya
Committed by
Clement Ho
Mar 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tooltip and accessibility label for profile cover buttons
parent
59f2724c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
app/views/users/show.html.haml
app/views/users/show.html.haml
+2
-2
changelogs/unreleased/29930-fix-profile-cover-button-a11y.yml
...gelogs/unreleased/29930-fix-profile-cover-button-a11y.yml
+4
-0
No files found.
app/views/users/show.html.haml
View file @
c2fc50c2
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
.cover-block.user-cover-block
.cover-block.user-cover-block
.cover-controls
.cover-controls
-
if
@user
==
current_user
-
if
@user
==
current_user
=
link_to
profile_path
,
class:
'btn btn-gray'
do
=
link_to
profile_path
,
class:
'btn btn-gray
has-tooltip'
,
title:
'Edit profile'
,
'aria-label'
:
'Edit profile
'
do
=
icon
(
'pencil'
)
=
icon
(
'pencil'
)
-
elsif
current_user
-
elsif
current_user
-
if
@user
.
abuse_report
-
if
@user
.
abuse_report
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
=
link_to
new_abuse_report_path
(
user_id:
@user
.
id
,
ref_url:
request
.
referrer
),
class:
'btn btn-gray'
,
=
link_to
new_abuse_report_path
(
user_id:
@user
.
id
,
ref_url:
request
.
referrer
),
class:
'btn btn-gray'
,
title:
'Report abuse'
,
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
title:
'Report abuse'
,
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
icon
(
'exclamation-circle'
)
=
icon
(
'exclamation-circle'
)
=
link_to
user_path
(
@user
,
rss_url_options
),
class:
'btn btn-gray'
do
=
link_to
user_path
(
@user
,
rss_url_options
),
class:
'btn btn-gray
has-tooltip'
,
title:
'Subscribe'
,
'aria-label'
:
'Subscribe
'
do
=
icon
(
'rss'
)
=
icon
(
'rss'
)
-
if
current_user
&&
current_user
.
admin?
-
if
current_user
&&
current_user
.
admin?
=
link_to
[
:admin
,
@user
],
class:
'btn btn-gray'
,
title:
'View user in admin area'
,
=
link_to
[
:admin
,
@user
],
class:
'btn btn-gray'
,
title:
'View user in admin area'
,
...
...
changelogs/unreleased/29930-fix-profile-cover-button-a11y.yml
0 → 100644
View file @
c2fc50c2
---
title
:
Add tooltip and accessibility for profile cover buttons
merge_request
:
10182
author
:
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