Skip to content

Commit

Permalink
Help Center: Refactor Help Center styles to use blueberry blue for co…
Browse files Browse the repository at this point in the history
…nsistency (#97979)
  • Loading branch information
agrullon95 authored Jan 6, 2025
1 parent c408977 commit 264b8a1
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/help-center/src/components/help-center-chat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
button {
padding: 7px;
&:focus {
outline: 2px solid #3858e9;
outline: 2px solid $help-center-blue;
outline-offset: 1px;
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/help-center/src/components/help-center-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
padding: 16px;

&.has-unread {
background: #3858E9;
background: $help-center-blue;
color: var(--studio-white);
border-radius: 0;

Expand Down Expand Up @@ -80,7 +80,7 @@
background: var(--studio-white);
border-radius: 45%;
font-size: $font-body-extra-small;
color: #3858E9;
color: $help-center-blue;
}
}

Expand Down
6 changes: 6 additions & 0 deletions packages/help-center/src/components/help-center-search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
min-height: 40px;
}

.search__icon-navigation {
&:focus {
box-shadow: 0 0 0 3px $help-center-blue;
}
}

&.has-focus {
outline: $help-center-blue solid 2px;
transition: none;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import "variables";

.help-center-support-chat__conversation-container {
display: flex;
flex-direction: row;
Expand All @@ -17,14 +19,14 @@
border-color: rgba(0, 0, 0, 0.2) !important;

.help-center-support-chat__open-conversation {
fill: var(--color-primary);
fill: $help-center-blue;
}
}

&.is-unread-message {
background-color: #EBF2FC;
.help-center-support-chat__open-conversation {
fill: var(--color-primary);
fill: $help-center-blue;
}
}

Expand Down Expand Up @@ -59,7 +61,7 @@
min-width: 26px;
height: 20px;
font-size: 12px; /* stylelint-disable-line declaration-property-unit-allowed-list */
background-color: #3858E9;
background-color: $help-center-blue;
color: #FFF;
}
}
Expand Down
12 changes: 9 additions & 3 deletions packages/help-center/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@
height: 100%;

.spinner__outer {
border-top-color: var(--wp-admin-theme-color);
border-top-color: $help-center-blue;
}

.spinner__inner {
border-top-color: var(--wp-admin-theme-color);
border-right-color: var(--wp-admin-theme-color);
border-top-color: $help-center-blue;
border-right-color: $help-center-blue;
}
}

Expand Down Expand Up @@ -178,6 +178,12 @@
transform: scale(1);
}
}

// Text highlight color
::selection {
background: rgba($help-center-blue, 0.7);
color: var(--color-text);
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@

.odie-feedback-component-button-liked-pressed,
.odie-feedback-component-button-disliked-pressed {
background-color: var(--color-primary);
background-color: $blueberry-color;
cursor: default;
pointer-events: none;
}
Expand All @@ -420,7 +420,7 @@
}

.odie-feedback-component-button-icon-pressed {
background-color: var(--color-primary);
background-color: $blueberry-color;
fill: var(--color-text-inverted);
}

Expand Down
6 changes: 6 additions & 0 deletions packages/odie-client/src/style.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$blueberry-blue: #3858e9;

.chatbox {
width: 100%;
height: calc(100% - 138px);
Expand Down Expand Up @@ -56,6 +58,10 @@
width: 100%;
justify-content: center;
padding: 16px 0;

.components-spinner {
color: $blueberry-blue;
}
}

.odie-chat__date {
Expand Down

0 comments on commit 264b8a1

Please sign in to comment.