summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2017-02-17 23:37:46 +0000
committerAlfredo Sumaran <alfredo@gitlab.com>2017-02-17 23:37:46 +0000
commitf6ac952819bf5e96498c028a3594dd36d521c297 (patch)
treef0fff42008a03dd2b85fd37b5d39e811e2af0885
parent721ae6bef6c369a74112bd0adc3202e3c0a206ee (diff)
parentee444bf340616192dc1e0807676bbe58ad1c3905 (diff)
downloadgitlab-ce-f6ac952819bf5e96498c028a3594dd36d521c297.tar.gz
Merge branch 'global-dropdown-edits' into 'master'
Global dropdown edits See merge request !9336
-rw-r--r--app/assets/stylesheets/framework/header.scss14
-rw-r--r--app/views/layouts/nav/_dashboard.html.haml4
-rw-r--r--app/views/profiles/preferences/show.html.haml7
-rw-r--r--doc/profile/preferences.md7
-rw-r--r--spec/features/dashboard/issuables_counter_spec.rb4
5 files changed, 10 insertions, 26 deletions
diff --git a/app/assets/stylesheets/framework/header.scss b/app/assets/stylesheets/framework/header.scss
index 367289968c9..3945a789c82 100644
--- a/app/assets/stylesheets/framework/header.scss
+++ b/app/assets/stylesheets/framework/header.scss
@@ -111,15 +111,9 @@ header {
}
li {
- .active a {
+ &.active a {
font-weight: bold;
}
-
- &:hover {
- .badge {
- background-color: $white-light;
- }
- }
}
}
@@ -132,7 +126,11 @@ header {
&:hover {
background-color: $white-normal;
- color: $gl-header-nav-hover-color;
+ }
+
+ &:focus {
+ outline: none;
+ background-color: $white-normal;
}
}
diff --git a/app/views/layouts/nav/_dashboard.html.haml b/app/views/layouts/nav/_dashboard.html.haml
index bb611d39be5..5d4178f03d7 100644
--- a/app/views/layouts/nav/_dashboard.html.haml
+++ b/app/views/layouts/nav/_dashboard.html.haml
@@ -24,12 +24,12 @@
= link_to assigned_issues_dashboard_path, title: 'Issues', class: 'dashboard-shortcuts-issues' do
%span
Issues
- %span.badge= number_with_delimiter(cached_assigned_issuables_count(current_user, :issues, :opened))
+ (#{number_with_delimiter(cached_assigned_issuables_count(current_user, :issues, :opened))})
= nav_link(path: 'dashboard#merge_requests') do
= link_to assigned_mrs_dashboard_path, title: 'Merge Requests', class: 'dashboard-shortcuts-merge_requests' do
%span
Merge Requests
- %span.badge= number_with_delimiter(cached_assigned_issuables_count(current_user, :merge_requests, :opened))
+ (#{number_with_delimiter(cached_assigned_issuables_count(current_user, :merge_requests, :opened))})
= nav_link(controller: 'dashboard/snippets') do
= link_to dashboard_snippets_path, title: 'Snippets' do
%span
diff --git a/app/views/profiles/preferences/show.html.haml b/app/views/profiles/preferences/show.html.haml
index 787339e0fe2..df0a0212f3d 100644
--- a/app/views/profiles/preferences/show.html.haml
+++ b/app/views/profiles/preferences/show.html.haml
@@ -4,13 +4,6 @@
= form_for @user, url: profile_preferences_path, remote: true, method: :put, html: { class: 'row prepend-top-default js-preferences-form' } do |f|
.col-lg-3.profile-settings-sidebar
%h4.prepend-top-0
- Application theme
- %p
- This setting allows you to customize the appearance of the site, e.g. the sidebar.
- .col-sm-12
- %hr
- .col-lg-3.profile-settings-sidebar
- %h4.prepend-top-0
Syntax highlighting theme
%p
This setting allow you to customize the appearance of the syntax.
diff --git a/doc/profile/preferences.md b/doc/profile/preferences.md
index 073b8797508..4f2b00f3dd1 100644
--- a/doc/profile/preferences.md
+++ b/doc/profile/preferences.md
@@ -3,13 +3,6 @@
Settings in the **Profile > Preferences** page allow the user to customize
various aspects of the site to their liking.
-## Application theme
-
-Changing this setting allows the user to customize the color scheme used for the
-navigation bar on the left side of the screen.
-
-The default is **Charcoal**.
-
## Syntax highlighting theme
_GitLab uses the [rouge ruby library][rouge] for syntax highlighting. For a
diff --git a/spec/features/dashboard/issuables_counter_spec.rb b/spec/features/dashboard/issuables_counter_spec.rb
index 603076d7d37..a1718912fc6 100644
--- a/spec/features/dashboard/issuables_counter_spec.rb
+++ b/spec/features/dashboard/issuables_counter_spec.rb
@@ -35,9 +35,9 @@ describe 'Navigation bar counter', feature: true, js: true, caching: true do
end
def expect_counters(issuable_type, count)
- dashboard_count = find('li.active span.badge')
+ dashboard_count = find('li.active')
find('.global-dropdown-toggle').click
- nav_count = find(".dashboard-shortcuts-#{issuable_type} span.badge")
+ nav_count = find(".dashboard-shortcuts-#{issuable_type}")
expect(nav_count).to have_content(count)
expect(dashboard_count).to have_content(count)