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
Léo-Paul Géneau
gitlab-ce
Commits
5f2d9ba9
Commit
5f2d9ba9
authored
Nov 07, 2016
by
tauriedavis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
24146 Add focus state to buttons and dropdowns
parent
6be0c160
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
5 additions
and
19 deletions
+5
-19
app/assets/javascripts/application.js
app/assets/javascripts/application.js
+0
-3
app/assets/stylesheets/framework/buttons.scss
app/assets/stylesheets/framework/buttons.scss
+0
-5
app/assets/stylesheets/framework/dropdowns.scss
app/assets/stylesheets/framework/dropdowns.scss
+4
-1
app/assets/stylesheets/framework/header.scss
app/assets/stylesheets/framework/header.scss
+0
-4
app/assets/stylesheets/framework/nav.scss
app/assets/stylesheets/framework/nav.scss
+0
-1
app/assets/stylesheets/framework/sidebar.scss
app/assets/stylesheets/framework/sidebar.scss
+0
-1
app/assets/stylesheets/pages/merge_conflicts.scss
app/assets/stylesheets/pages/merge_conflicts.scss
+0
-1
app/assets/stylesheets/pages/search.scss
app/assets/stylesheets/pages/search.scss
+0
-2
app/views/layouts/_search.html.haml
app/views/layouts/_search.html.haml
+1
-1
No files found.
app/assets/javascripts/application.js
View file @
5f2d9ba9
...
@@ -194,9 +194,6 @@
...
@@ -194,9 +194,6 @@
e
.
preventDefault
();
e
.
preventDefault
();
return
new
ConfirmDangerModal
(
form
,
text
);
return
new
ConfirmDangerModal
(
form
,
text
);
});
});
$document
.
on
(
'
click
'
,
'
button
'
,
function
()
{
return
$
(
this
).
blur
();
});
$
(
'
input[type="search"]
'
).
each
(
function
()
{
$
(
'
input[type="search"]
'
).
each
(
function
()
{
var
$this
=
$
(
this
);
var
$this
=
$
(
this
);
$this
.
attr
(
'
value
'
,
$this
.
val
());
$this
.
attr
(
'
value
'
,
$this
.
val
());
...
...
app/assets/stylesheets/framework/buttons.scss
View file @
5f2d9ba9
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
&
:focus
,
&
:focus
,
&
:active
{
&
:active
{
outline
:
none
;
background-color
:
$btn-active-gray
;
background-color
:
$btn-active-gray
;
box-shadow
:
$gl-btn-active-background
;
box-shadow
:
$gl-btn-active-background
;
}
}
...
@@ -267,10 +266,6 @@
...
@@ -267,10 +266,6 @@
outline
:
none
;
outline
:
none
;
}
}
&
:focus
{
outline
:
none
;
}
&
:active
{
&
:active
{
outline
:
none
;
outline
:
none
;
}
}
...
...
app/assets/stylesheets/framework/dropdowns.scss
View file @
5f2d9ba9
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
text-align
:
left
;
text-align
:
left
;
border
:
1px
solid
$border-color
;
border
:
1px
solid
$border-color
;
border-radius
:
$border-radius-base
;
border-radius
:
$border-radius-base
;
outline
:
0
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -55,6 +54,10 @@
...
@@ -55,6 +54,10 @@
}
}
}
}
&
.no-outline
{
outline
:
0
;
}
&
:hover
,
{
&
:hover
,
{
border-color
:
$dropdown-toggle-hover-border-color
;
border-color
:
$dropdown-toggle-hover-border-color
;
...
...
app/assets/stylesheets/framework/header.scss
View file @
5f2d9ba9
...
@@ -100,10 +100,6 @@ header {
...
@@ -100,10 +100,6 @@ header {
&
:hover
{
&
:hover
{
background-color
:
$btn-gray-hover
;
background-color
:
$btn-gray-hover
;
}
}
&
:focus
{
outline
:
none
;
}
}
}
}
}
...
...
app/assets/stylesheets/framework/nav.scss
View file @
5f2d9ba9
...
@@ -58,7 +58,6 @@
...
@@ -58,7 +58,6 @@
&
:active
,
&
:active
,
&
:focus
{
&
:focus
{
text-decoration
:
none
;
text-decoration
:
none
;
outline
:
none
;
}
}
}
}
...
...
app/assets/stylesheets/framework/sidebar.scss
View file @
5f2d9ba9
...
@@ -83,7 +83,6 @@
...
@@ -83,7 +83,6 @@
display
:
block
;
display
:
block
;
text-decoration
:
none
;
text-decoration
:
none
;
font-weight
:
normal
;
font-weight
:
normal
;
outline
:
none
;
&
:hover
,
&
:hover
,
&
:active
,
&
:active
,
...
...
app/assets/stylesheets/pages/merge_conflicts.scss
View file @
5f2d9ba9
...
@@ -228,7 +228,6 @@ $colors: (
...
@@ -228,7 +228,6 @@ $colors: (
position
:
absolute
;
position
:
absolute
;
right
:
10px
;
right
:
10px
;
padding
:
0
;
padding
:
0
;
outline
:
none
;
color
:
#fff
;
color
:
#fff
;
width
:
75px
;
// static width to make 2 buttons have same width
width
:
75px
;
// static width to make 2 buttons have same width
height
:
19px
;
height
:
19px
;
...
...
app/assets/stylesheets/pages/search.scss
View file @
5f2d9ba9
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
padding-right
:
20px
;
padding-right
:
20px
;
border
:
none
;
border
:
none
;
font-size
:
14px
;
font-size
:
14px
;
outline
:
none
;
padding
:
0
;
padding
:
0
;
margin-left
:
5px
;
margin-left
:
5px
;
line-height
:
25px
;
line-height
:
25px
;
...
@@ -229,6 +228,5 @@
...
@@ -229,6 +228,5 @@
&
:hover
,
&
:hover
,
&
:focus
{
&
:focus
{
color
:
$gl-link-color
;
color
:
$gl-link-color
;
outline
:
none
;
}
}
}
}
app/views/layouts/_search.html.haml
View file @
5f2d9ba9
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
.location-badge
=
label
.location-badge
=
label
.search-input-wrap
.search-input-wrap
.dropdown
{
data:
{
url:
search_autocomplete_path
}
}
.dropdown
{
data:
{
url:
search_autocomplete_path
}
}
=
search_field_tag
'search'
,
nil
,
placeholder:
'Search'
,
class:
'search-input dropdown-menu-toggle js-search-dashboard-options'
,
spellcheck:
false
,
tabindex:
'1'
,
autocomplete:
'off'
,
data:
{
toggle:
'dropdown'
,
issues_path:
issues_dashboard_url
,
mr_path:
merge_requests_dashboard_url
}
=
search_field_tag
'search'
,
nil
,
placeholder:
'Search'
,
class:
'search-input dropdown-menu-toggle
no-outline
js-search-dashboard-options'
,
spellcheck:
false
,
tabindex:
'1'
,
autocomplete:
'off'
,
data:
{
toggle:
'dropdown'
,
issues_path:
issues_dashboard_url
,
mr_path:
merge_requests_dashboard_url
}
.dropdown-menu.dropdown-select
.dropdown-menu.dropdown-select
=
dropdown_content
do
=
dropdown_content
do
%ul
%ul
...
...
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