Skip to content

Commit 22f4a4a

Browse files
committed
Centralize A8C button overrides
1 parent 583f579 commit 22f4a4a

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

client/assets/stylesheets/_wp-components-overrides.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
justify-content: center;
1111
}
1212

13+
/* Default */
1314
.components-button.is-primary:not(.is-destructive) {
1415
// Background color, focus ring color
1516
--wp-components-color-accent: var(--color-accent);
@@ -40,6 +41,14 @@
4041
--wp-components-color-accent: var(--color-accent);
4142
}
4243

44+
/* A8C for Agencies */
45+
.a8c-for-agencies {
46+
.components-button {
47+
--color-accent: var(--color-primary-40);
48+
--color-accent-60: var(--color-primary-60);
49+
}
50+
}
51+
4352
/* Jetpack */
4453
.layout.is-jetpack-login:not(.is-wccom-oauth-flow):not(.is-woocommerce-core-profiler-flow) {
4554
.components-button {

client/layout/masterbar/oauth-client.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -734,11 +734,6 @@
734734
}
735735
}
736736

737-
.components-button {
738-
--color-accent: var(--color-primary-40);
739-
--color-accent-60: var(--color-primary-60);
740-
}
741-
742737
.login__form-change-username,
743738
.wp-login__links button {
744739
color: var(--color-primary-40);

0 commit comments

Comments
 (0)