Commit ddd8f707 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'patch-2' into 'master'

Add autofocus and tabindex to newGroup.

Hi,
I've increase accessibility with a autofocus and tabindex on the new group view (like new project).
parents 5c23bb11 4593a0bc
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
= f.label :name, class: 'control-label' do = f.label :name, class: 'control-label' do
Group name Group name
.col-sm-10 .col-sm-10
= f.text_field :name, placeholder: "Ex. OpenSource", class: "form-control" = f.text_field :name, placeholder: "Ex. OpenSource", class: "form-control", tabindex: 1, autofocus: true
.form-group.group-description-holder .form-group.group-description-holder
= f.label :description, "Details", class: 'control-label' = f.label :description, "Details", class: 'control-label'
.col-sm-10 .col-sm-10
= f.text_area :description, maxlength: 250, class: "form-control js-gfm-input", rows: 4 = f.text_area :description, maxlength: 250, class: "form-control js-gfm-input", rows: 4, tabindex: 2
.form-group.group-description-holder .form-group.group-description-holder
= f.label :avatar, "Group avatar", class: 'control-label' = f.label :avatar, "Group avatar", class: 'control-label'
...@@ -35,6 +35,4 @@ ...@@ -35,6 +35,4 @@
%li Existing projects may be moved into a group %li Existing projects may be moved into a group
.form-actions .form-actions
= f.submit 'Create group', class: "btn btn-create" = f.submit 'Create group', class: "btn btn-create", tabindex: 3
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment