-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colour Scheming: Replace Jetpack Variable #30232
Changes from 16 commits
f682657
d5b9935
0ced895
2065546
7ed95d0
bf78928
16ed51d
08dec35
355ee8c
a96b6d5
8de40ba
9968471
d61ea78
d659ebf
097b417
53791cc
c29747f
2e7c7dc
e7c9659
b0c3efd
a145559
916b01b
c56ec7c
ba14acc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,23 +26,23 @@ | |
} | ||
|
||
.button.is-primary { | ||
background-color: $green-jetpack; | ||
border-color: darken( $green-jetpack, 5% ); | ||
background-color: var( --color-jetpack ); | ||
border-color: var( --color-jetpack-light ); | ||
Aurorum marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
&:hover, | ||
&:focus { | ||
border-color: darken( $green-jetpack, 30% ); | ||
border-color: var( --color-jetpack-dark ); | ||
} | ||
|
||
&:focus { | ||
box-shadow: 0 0 0 2px lighten( $green-jetpack, 25% ); | ||
box-shadow: 0 0 0 2px var( --color-jetpack-light ); | ||
} | ||
|
||
&[disabled], | ||
&:disabled { | ||
background: tint( $green-jetpack, 50% ); | ||
border-color: tint( $green-jetpack, 35% ); | ||
color: $white; | ||
background: var( --color-white ); | ||
border-color: var( --color-neutral-50); | ||
color: var( --color-neutral-50 ); | ||
} | ||
} | ||
} | ||
|
@@ -231,7 +231,7 @@ | |
.example-components__install-plugin-header { | ||
width: 100%; | ||
padding-bottom: 12%; | ||
background-color: $green-jetpack; | ||
background-color: var( --color-jetpack ); | ||
} | ||
|
||
.example-components__install-plugin-body { | ||
|
@@ -254,7 +254,7 @@ | |
font-size: 12px; | ||
padding: 7px 14px; | ||
line-height: 1; | ||
color: $white; | ||
color: var( --color-white ); | ||
background-color: #008ec2; // wp-admin button blue | ||
border: 1px solid #006799; | ||
border-radius: 3px; | ||
|
@@ -298,15 +298,15 @@ | |
.example-components__content-wp-admin-connect-banner { | ||
margin: 10px; | ||
padding: 10px 10px 12px; | ||
background-color: $white; | ||
background-color: var( --color-white ); | ||
} | ||
|
||
.example-components__content-wp-admin-connect-button { | ||
display: inline-block; | ||
font-size: 12px; | ||
padding: 7px 14px; | ||
line-height: 1; | ||
color: $white; | ||
color: var( --color-white ); | ||
border-radius: 3px; | ||
background-color: #00be28; | ||
border: 2px #00a523 solid; | ||
|
@@ -328,7 +328,7 @@ | |
font-size: 12px; | ||
line-height: 1; | ||
padding: 11px 10px; | ||
color: $white; | ||
color: var( --color-white ); | ||
background-color: #518d2a; | ||
border-color: #518d2a; | ||
border-radius: 4px; | ||
|
@@ -339,7 +339,7 @@ | |
.example-components__content-wp-admin-plugin-card { | ||
margin: 10px; | ||
padding: 12px 10px; | ||
background-color: $white; | ||
background-color: var( --color-white ); | ||
} | ||
|
||
.example-components__content-wp-admin-plugin-name { | ||
|
@@ -622,8 +622,8 @@ | |
} | ||
|
||
&.is-primary { | ||
background-color: $green-jetpack; | ||
border-color: darken( $green-jetpack, 5% ); | ||
background-color: var( --color-jetpack ); | ||
border-color: var( --color-jetpack-light ); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My concern with changing these lights to dark would mean that the hover state wouldn't have a visible effect. Is it okay to lose that? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
That concern is right 👍 The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've switched all the ones that you recommended to be dark.
So I understand correctly here, do you suggest adding a new variable, perhaps
Just to clarify, my concern is that the hover border will be identical. From a really brief look, I don't think there's too a major issue with background colours on hover though.
Agreed, happy to take a stab at that after this! So to just clarify, is this correct? Background colours: Normal state - Jetpack green Border colours: Normal state - Dark Jetpack For reference, here's the current styles. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My suggestion is to align it with the current That's what the current
/cc @drw158 I hope that makes it more clear. Let me know if you have further questions and I'll try to answer them accordingly. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 400 in Jetpack Green would be #57ca53 Let me know if you need any more! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So currently, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The latter should be used for the button background color on hover. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for confirming, just added some commits, let me know if that's what you're referring to. :) |
||
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This caused #30469