Skip to content

Commit 4778b97

Browse files
committed
Centralize missing Woo social button overrides
1 parent 6d2f9bd commit 4778b97

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

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

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import "@wordpress/base-styles/colors";
2+
13
/* @wordpress/components FormToggle overrides ----------------------------------------- */
24
.components-form-toggle {
35
input[type="checkbox"] {
@@ -124,19 +126,14 @@
124126
}
125127

126128
&.is-primary,
127-
&.social-buttons__button {
129+
// Used for Social buttons
130+
&.a8c-components-wp-button {
128131
border-radius: 8px; /* stylelint-disable-line scales/radii */
129132
font-size: 1rem;
130133
font-weight: 500;
131134
height: 48px;
132135
}
133136

134-
&.social-buttons__button {
135-
&:focus:not(:disabled) {
136-
box-shadow: inset 0 0 0 1px var(--wp-components-color-background, #fff), 0 0 0 2px var(--wp-components-color-accent);
137-
}
138-
}
139-
140137
&.is-primary {
141138
&:focus:not(:disabled) {
142139
box-shadow: 0 0 0 2px var(--wp-components-color-accent);
@@ -152,6 +149,17 @@
152149
margin-top: 0;
153150
}
154151
}
152+
153+
// Used for Social buttons
154+
&.a8c-components-wp-button {
155+
&:not(:focus) {
156+
box-shadow: inset 0 0 0 2px $gray-300, 0 0 0 currentColor;
157+
}
158+
159+
&:focus:not(:disabled) {
160+
box-shadow: inset 0 0 0 1px var(--wp-components-color-background, #fff), 0 0 0 2px var(--wp-components-color-accent);
161+
}
162+
}
155163
}
156164
}
157165

client/layout/masterbar/woo.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,10 +1556,6 @@ $breakpoint-mobile: 660px;
15561556
.social-buttons__button {
15571557
padding: 8px 16px;
15581558

1559-
&:not(:focus) {
1560-
box-shadow: inset 0 0 0 2px $gray-300, 0 0 0 currentColor;
1561-
}
1562-
15631559
> span {
15641560
color: var(--studio-gray-100);
15651561
font-family: $woo-inter-font;

0 commit comments

Comments
 (0)