@wordpress/base-styles 5.21.0 → 5.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/_mixins.scss +5 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/_mixins.scss
CHANGED
|
@@ -151,10 +151,10 @@
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
|
|
154
|
-
@mixin input-style__focus() {
|
|
155
|
-
border-color:
|
|
154
|
+
@mixin input-style__focus($accent-color: var(--wp-admin-theme-color)) {
|
|
155
|
+
border-color: $accent-color;
|
|
156
156
|
// Expand the default border focus style by .5px to be a total of 1.5px.
|
|
157
|
-
box-shadow: 0 0 0 0.5px
|
|
157
|
+
box-shadow: 0 0 0 0.5px $accent-color;
|
|
158
158
|
// Windows High Contrast mode will show this outline, but not the box-shadow.
|
|
159
159
|
outline: 2px solid transparent;
|
|
160
160
|
}
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
@mixin input-control {
|
|
262
|
+
@mixin input-control($accent-color: var(--wp-admin-theme-color)) {
|
|
263
263
|
font-family: $default-font;
|
|
264
264
|
padding: 6px 8px;
|
|
265
265
|
@include input-style__neutral();
|
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
&:focus {
|
|
278
|
-
@include input-style__focus();
|
|
278
|
+
@include input-style__focus($accent-color);
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
// Use opacity to work in various editor styles.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/base-styles",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.22.0",
|
|
4
4
|
"description": "Base SCSS utilities and variables for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "01a314d7e46a50101e328fdb11959c441e49372d"
|
|
31
31
|
}
|