From 939a746dcd1562dfe742b670462b47859eb9eedc Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 9 Oct 2019 12:28:48 +0100 Subject: [PATCH] UX: Use theme colors for GitHub issue labels Bump onebox version to pull tag rendering bug fix --- Gemfile | 2 +- Gemfile.lock | 4 ++-- app/assets/stylesheets/common/base/onebox.scss | 7 +++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 31d391e4cd2..fe9faf36a45 100644 --- a/Gemfile +++ b/Gemfile @@ -50,7 +50,7 @@ gem 'redis-namespace' gem 'active_model_serializers', '~> 0.8.3' -gem 'onebox', '1.9.16' +gem 'onebox', '1.9.17' gem 'http_accept_language', '~>2.0.5', require: false diff --git a/Gemfile.lock b/Gemfile.lock index a03c3d3defa..89de47af239 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -245,7 +245,7 @@ GEM omniauth-twitter (1.4.0) omniauth-oauth (~> 1.1) rack - onebox (1.9.16) + onebox (1.9.17) htmlentities (~> 4.3) moneta (~> 1.0) multi_json (~> 1.11) @@ -501,7 +501,7 @@ DEPENDENCIES omniauth-oauth2 omniauth-openid omniauth-twitter - onebox (= 1.9.16) + onebox (= 1.9.17) openid-redis-store parallel_tests pg diff --git a/app/assets/stylesheets/common/base/onebox.scss b/app/assets/stylesheets/common/base/onebox.scss index 240d93308c3..e707724b4d9 100644 --- a/app/assets/stylesheets/common/base/onebox.scss +++ b/app/assets/stylesheets/common/base/onebox.scss @@ -452,6 +452,13 @@ pre.onebox code { .github-content { margin: 5px 0 0 0; } + + .labels span { + // !important required to override inline style attribute + background-color: $primary-medium !important; + color: $secondary !important; + padding: 2px 4px !important; + } } //Onebox - Github - Pull request