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
13207310
Commit
13207310
authored
7 years ago
by
Kushal Pandya
Committed by
Phil Hughes
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix accessibility issues for Input fields across GitLab
parent
f99e8c07
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
6 deletions
+9
-6
app/helpers/button_helper.rb
app/helpers/button_helper.rb
+4
-1
app/views/layouts/_search.html.haml
app/views/layouts/_search.html.haml
+1
-1
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+2
-2
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+1
-1
app/views/shared/_clone_panel.html.haml
app/views/shared/_clone_panel.html.haml
+1
-1
No files found.
app/helpers/button_helper.rb
View file @
13207310
...
@@ -42,7 +42,10 @@ module ButtonHelper
...
@@ -42,7 +42,10 @@ module ButtonHelper
class:
"btn
#{
css_class
}
"
,
class:
"btn
#{
css_class
}
"
,
data:
data
,
data:
data
,
type: :button
,
type: :button
,
title:
title
title:
title
,
aria:
{
label:
title
}
end
end
def
http_clone_button
(
project
,
placement
=
'right'
,
append_link:
true
)
def
http_clone_button
(
project
,
placement
=
'right'
,
append_link:
true
)
...
...
This diff is collapsed.
Click to expand it.
app/views/layouts/_search.html.haml
View file @
13207310
...
@@ -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 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
}
=
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
}
,
aria:
{
label:
'Search'
}
.dropdown-menu.dropdown-select
.dropdown-menu.dropdown-select
=
dropdown_content
do
=
dropdown_content
do
%ul
%ul
...
...
This diff is collapsed.
Click to expand it.
app/views/projects/edit.html.haml
View file @
13207310
...
@@ -40,8 +40,8 @@
...
@@ -40,8 +40,8 @@
.form_group.prepend-top-20.sharing-and-permissions
.form_group.prepend-top-20.sharing-and-permissions
.row.js-visibility-select
.row.js-visibility-select
.col-md-9
.col-md-9
%label
.label-light
.label-light
=
label_tag
:project_visibility
,
'Project Visibility'
,
class:
'label-light'
=
label_tag
:project_visibility
,
'Project Visibility'
,
class:
'label-light'
,
for: :project_visibility_level
=
link_to
"(?)"
,
help_page_path
(
"public_access/public_access"
)
=
link_to
"(?)"
,
help_page_path
(
"public_access/public_access"
)
%span
.help-block
%span
.help-block
.col-md-3.visibility-select-container
.col-md-3.visibility-select-container
...
...
This diff is collapsed.
Click to expand it.
app/views/projects/new.html.haml
View file @
13207310
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
#{
root_url
}#{
current_user
.
username
}
/
#{
root_url
}#{
current_user
.
username
}
/
=
f
.
hidden_field
:namespace_id
,
value:
current_user
.
namespace_id
=
f
.
hidden_field
:namespace_id
,
value:
current_user
.
namespace_id
.form-group.col-xs-12.col-sm-6.project-path
.form-group.col-xs-12.col-sm-6.project-path
=
f
.
label
:
namespace_id
,
class:
'label-light'
do
=
f
.
label
:
path
,
class:
'label-light'
do
%span
%span
Project name
Project name
=
f
.
text_field
:path
,
placeholder:
"my-awesome-project"
,
class:
"form-control"
,
tabindex:
2
,
autofocus:
true
,
required:
true
=
f
.
text_field
:path
,
placeholder:
"my-awesome-project"
,
class:
"form-control"
,
tabindex:
2
,
autofocus:
true
,
required:
true
...
...
This diff is collapsed.
Click to expand it.
app/views/shared/_clone_panel.html.haml
View file @
13207310
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
%li
%li
=
http_clone_button
(
project
)
=
http_clone_button
(
project
)
=
text_field_tag
:project_clone
,
default_url_to_repo
(
project
),
class:
"js-select-on-focus form-control"
,
readonly:
true
=
text_field_tag
:project_clone
,
default_url_to_repo
(
project
),
class:
"js-select-on-focus form-control"
,
readonly:
true
,
aria:
{
label:
'Project clone URL'
}
.input-group-btn
.input-group-btn
=
clipboard_button
(
target:
'#project_clone'
,
title:
"Copy URL to clipboard"
)
=
clipboard_button
(
target:
'#project_clone'
,
title:
"Copy URL to clipboard"
)
...
...
This diff is collapsed.
Click to expand it.
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