From 9da3d78e74d6c8f363799dc2157540ea005ea102 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 20 May 2022 00:08:08 +0200 Subject: Replace blue button and label classes with primary (#19763) * make blue really blue * replace blue button and label classes with primary * add --color-blue-dark * add light color variants, tweak a few colors * fix colors * add comment Co-authored-by: wxiaoguang --- web_src/js/features/comp/ReactionSelector.js | 2 +- web_src/js/features/repo-home.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'web_src/js') diff --git a/web_src/js/features/comp/ReactionSelector.js b/web_src/js/features/comp/ReactionSelector.js index f3b7a7668e..272ea45cdd 100644 --- a/web_src/js/features/comp/ReactionSelector.js +++ b/web_src/js/features/comp/ReactionSelector.js @@ -16,7 +16,7 @@ export function initCompReactionSelector(parent) { if ($(this).hasClass('disabled')) return; const actionURL = $(this).hasClass('item') ? $(this).closest('.select-reaction').data('action-url') : $(this).data('action-url'); - const url = `${actionURL}/${$(this).hasClass('blue') ? 'unreact' : 'react'}`; + const url = `${actionURL}/${$(this).hasClass('primary') ? 'unreact' : 'react'}`; $.ajax({ type: 'POST', url, diff --git a/web_src/js/features/repo-home.js b/web_src/js/features/repo-home.js index 2a66dbc6f1..f0ea18dd10 100644 --- a/web_src/js/features/repo-home.js +++ b/web_src/js/features/repo-home.js @@ -84,8 +84,6 @@ export function initRepoTopicBar() { transition: 'horizontal flip', duration: 200, variation: false, - blue: true, - basic: true, }, className: { label: 'ui small label' -- cgit v1.2.3