BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
a081a60d
Commit
a081a60d
authored
Aug 10, 2017
by
Eric Eastwood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make close/changed icon more accessible
Fix
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12198#note_37143527
parent
ecb7c534
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
repo_tab.vue
app/assets/javascripts/repo/components/repo_tab.vue
+17
-2
No files found.
app/assets/javascripts/repo/components/repo_tab.vue
View file @
a081a60d
...
...
@@ -10,6 +10,12 @@ const RepoTab = {
},
computed
:
{
closeLabel
()
{
if
(
this
.
tab
.
changed
)
{
return
`
${
this
.
tab
.
name
}
changed`
;
}
return
`Close
${
this
.
tab
.
name
}
`
;
},
changedClass
()
{
const
tabChangedObj
=
{
'fa-times'
:
!
this
.
tab
.
changed
,
...
...
@@ -34,8 +40,17 @@ export default RepoTab;
<
template
>
<li>
<a
href=
"#"
class=
"close"
@
click
.
prevent=
"xClicked(tab)"
v-if=
"!tab.loading"
>
<i
class=
"fa"
:class=
"changedClass"
></i>
<a
v-if=
"!tab.loading"
href=
"#0"
class=
"close"
@
click
.
prevent=
"xClicked(tab)"
:aria-label=
"closeLabel"
>
<i
class=
"fa"
:class=
"changedClass"
aria-hidden=
"true"
>
</i>
</a>
<a
href=
"#"
class=
"repo-tab"
v-if=
"!tab.loading"
:title=
"tab.url"
@
click
.
prevent=
"tabClicked(tab)"
>
{{
tab
.
name
}}
</a>
...
...
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