From efaa9aed21e13c07b27ca56c8fc70fa73f7fbbe6 Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Sat, 22 Jan 2022 21:36:28 +0530 Subject: [PATCH] feat: using css vars for brand and tab border color --- .../src/components/GraphQLRequestPane/StyledWrapper.js | 8 ++++---- .../src/components/HttpRequestPane/StyledWrapper.js | 8 ++++---- .../grafnode-components/src/components/QueryUrl/index.js | 2 +- .../src/components/ResponsePane/StyledWrapper.js | 2 +- .../src/components/SaveRequest/index.js | 2 +- .../Collection/CollectionItem/StyledWrapper.js | 6 +++--- packages/grafnode-run/src/styles/globals.css | 6 ++++++ 7 files changed, 20 insertions(+), 14 deletions(-) diff --git a/packages/grafnode-components/src/components/GraphQLRequestPane/StyledWrapper.js b/packages/grafnode-components/src/components/GraphQLRequestPane/StyledWrapper.js index 8035c4cc..282a8259 100644 --- a/packages/grafnode-components/src/components/GraphQLRequestPane/StyledWrapper.js +++ b/packages/grafnode-components/src/components/GraphQLRequestPane/StyledWrapper.js @@ -32,8 +32,8 @@ const StyledWrapper = styled.div` .react-tabs__tab--selected { border: none; color: #322e2c !important; - border-bottom: solid 2px #8e44ad !important; - border-color: #8e44ad !important; + border-bottom: solid 2px var(--color-tab-active-border) !important; + border-color: var(--color-tab-active-border) !important; background: inherit; outline: none !important; box-shadow: none !important; @@ -42,8 +42,8 @@ const StyledWrapper = styled.div` border: none; outline: none !important; box-shadow: none !important; - border-bottom: solid 2px #8e44ad !important; - border-color: #8e44ad !important; + border-bottom: solid 2px var(--color-tab-active-border) !important; + border-color: var(--color-tab-active-border) !important; background: inherit; outline: none !important; box-shadow: none !important; diff --git a/packages/grafnode-components/src/components/HttpRequestPane/StyledWrapper.js b/packages/grafnode-components/src/components/HttpRequestPane/StyledWrapper.js index af2dfcf3..12757c2c 100644 --- a/packages/grafnode-components/src/components/HttpRequestPane/StyledWrapper.js +++ b/packages/grafnode-components/src/components/HttpRequestPane/StyledWrapper.js @@ -32,8 +32,8 @@ const StyledWrapper = styled.div` .react-tabs__tab--selected { border: none; color: #322e2c !important; - border-bottom: solid 2px #8e44ad !important; - border-color: #8e44ad !important; + border-bottom: solid 2px var(--color-tab-active-border) !important; + border-color: var(--color-tab-active-border) !important; background: inherit; outline: none !important; box-shadow: none !important; @@ -42,8 +42,8 @@ const StyledWrapper = styled.div` border: none; outline: none !important; box-shadow: none !important; - border-bottom: solid 2px #8e44ad !important; - border-color: #8e44ad !important; + border-bottom: solid 2px var(--color-tab-active-border) !important; + border-color: var(--color-tab-active-border) !important; background: inherit; outline: none !important; box-shadow: none !important; diff --git a/packages/grafnode-components/src/components/QueryUrl/index.js b/packages/grafnode-components/src/components/QueryUrl/index.js index 4141f587..a940ed51 100644 --- a/packages/grafnode-components/src/components/QueryUrl/index.js +++ b/packages/grafnode-components/src/components/QueryUrl/index.js @@ -90,7 +90,7 @@ const QueryUrl = ({value, onChange, handleRun, collections}) => { />