@wordpress/edit-site 7.3.2-next.v.202608281122.0 → 7.4.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 +17 -1
- package/build/components/add-new-template/add-custom-template-modal-content.cjs +3 -1
- package/build/components/add-new-template/add-custom-template-modal-content.cjs.map +2 -2
- package/build/components/add-new-template/index.cjs +6 -4
- package/build/components/add-new-template/index.cjs.map +2 -2
- package/build/components/add-new-template/utils.cjs +84 -9
- package/build/components/add-new-template/utils.cjs.map +2 -2
- package/build/components/dataviews-actions/index.cjs +2 -55
- package/build/components/dataviews-actions/index.cjs.map +3 -3
- package/build/components/layout/index.cjs +2 -2
- package/build/components/layout/index.cjs.map +2 -2
- package/build/components/more-menu/welcome-guide-menu-item.cjs +10 -2
- package/build/components/more-menu/welcome-guide-menu-item.cjs.map +3 -3
- package/build/components/page-templates/fields.cjs +2 -126
- package/build/components/page-templates/fields.cjs.map +3 -3
- package/build/components/page-templates/index.cjs +46 -230
- package/build/components/page-templates/index.cjs.map +3 -3
- package/build/components/post-list/index.cjs +7 -17
- package/build/components/post-list/index.cjs.map +2 -2
- package/build/components/sidebar-global-styles/index.cjs +2 -2
- package/build/components/sidebar-global-styles/index.cjs.map +2 -2
- package/build/components/sidebar-identity/index.cjs +17 -22
- package/build/components/sidebar-identity/index.cjs.map +2 -2
- package/build/components/sidebar-navigation-item/index.cjs +1 -8
- package/build/components/sidebar-navigation-item/index.cjs.map +2 -2
- package/build/components/sidebar-navigation-screen-templates-browse/content.cjs +34 -72
- package/build/components/sidebar-navigation-screen-templates-browse/content.cjs.map +3 -3
- package/build/components/sidebar-navigation-screen-templates-browse/index.cjs +1 -2
- package/build/components/sidebar-navigation-screen-templates-browse/index.cjs.map +3 -3
- package/build/components/site-editor-routes/templates.cjs +2 -4
- package/build/components/site-editor-routes/templates.cjs.map +3 -3
- package/build/index.cjs +0 -1
- package/build/index.cjs.map +2 -2
- package/build-module/components/add-new-template/add-custom-template-modal-content.mjs +3 -1
- package/build-module/components/add-new-template/add-custom-template-modal-content.mjs.map +2 -2
- package/build-module/components/add-new-template/index.mjs +7 -4
- package/build-module/components/add-new-template/index.mjs.map +2 -2
- package/build-module/components/add-new-template/utils.mjs +84 -9
- package/build-module/components/add-new-template/utils.mjs.map +2 -2
- package/build-module/components/dataviews-actions/index.mjs +1 -53
- package/build-module/components/dataviews-actions/index.mjs.map +2 -2
- package/build-module/components/layout/index.mjs +2 -2
- package/build-module/components/layout/index.mjs.map +2 -2
- package/build-module/components/more-menu/welcome-guide-menu-item.mjs +10 -2
- package/build-module/components/more-menu/welcome-guide-menu-item.mjs.map +2 -2
- package/build-module/components/page-templates/fields.mjs +3 -129
- package/build-module/components/page-templates/fields.mjs.map +3 -3
- package/build-module/components/page-templates/index.mjs +52 -253
- package/build-module/components/page-templates/index.mjs.map +2 -2
- package/build-module/components/post-list/index.mjs +8 -18
- package/build-module/components/post-list/index.mjs.map +2 -2
- package/build-module/components/sidebar-global-styles/index.mjs +2 -2
- package/build-module/components/sidebar-global-styles/index.mjs.map +2 -2
- package/build-module/components/sidebar-identity/index.mjs +17 -22
- package/build-module/components/sidebar-identity/index.mjs.map +2 -2
- package/build-module/components/sidebar-navigation-item/index.mjs +1 -8
- package/build-module/components/sidebar-navigation-item/index.mjs.map +2 -2
- package/build-module/components/sidebar-navigation-screen-templates-browse/content.mjs +42 -75
- package/build-module/components/sidebar-navigation-screen-templates-browse/content.mjs.map +2 -2
- package/build-module/components/sidebar-navigation-screen-templates-browse/index.mjs +1 -2
- package/build-module/components/sidebar-navigation-screen-templates-browse/index.mjs.map +2 -2
- package/build-module/components/site-editor-routes/templates.mjs +2 -4
- package/build-module/components/site-editor-routes/templates.mjs.map +2 -2
- package/build-module/index.mjs +0 -1
- package/build-module/index.mjs.map +2 -2
- package/build-style/style-rtl.css +38 -81
- package/build-style/style.css +38 -81
- package/package.json +41 -38
- package/src/components/add-new-template/add-custom-template-modal-content.jsx +3 -1
- package/src/components/add-new-template/index.jsx +9 -4
- package/src/components/add-new-template/style.scss +8 -21
- package/src/components/add-new-template/utils.js +118 -9
- package/src/components/dataviews-actions/index.js +0 -61
- package/src/components/layout/index.jsx +5 -2
- package/src/components/more-menu/welcome-guide-menu-item.jsx +8 -3
- package/src/components/page-templates/fields.jsx +2 -146
- package/src/components/page-templates/index.jsx +30 -256
- package/src/components/post-list/index.jsx +7 -20
- package/src/components/sidebar-global-styles/index.jsx +7 -5
- package/src/components/sidebar-global-styles/style.scss +6 -0
- package/src/components/sidebar-identity/index.jsx +23 -19
- package/src/components/sidebar-identity/style.scss +7 -0
- package/src/components/sidebar-navigation-item/index.jsx +1 -7
- package/src/components/sidebar-navigation-screen-templates-browse/content.jsx +45 -80
- package/src/components/sidebar-navigation-screen-templates-browse/index.jsx +1 -8
- package/src/components/site-editor-routes/templates.jsx +2 -19
- package/src/components/welcome-guide/style.scss +1 -1
- package/src/index.jsx +0 -1
- package/src/style.scss +1 -1
- package/src/utils/test/get-filtered-template-parts.js +1 -0
- package/build/components/add-new-template-legacy/add-custom-generic-template-modal-content.cjs +0 -107
- package/build/components/add-new-template-legacy/add-custom-generic-template-modal-content.cjs.map +0 -7
- package/build/components/add-new-template-legacy/add-custom-template-modal-content.cjs +0 -327
- package/build/components/add-new-template-legacy/add-custom-template-modal-content.cjs.map +0 -7
- package/build/components/add-new-template-legacy/index.cjs +0 -390
- package/build/components/add-new-template-legacy/index.cjs.map +0 -7
- package/build/components/add-new-template-legacy/utils.cjs +0 -623
- package/build/components/add-new-template-legacy/utils.cjs.map +0 -7
- package/build/components/page-templates/hooks.cjs +0 -94
- package/build/components/page-templates/hooks.cjs.map +0 -7
- package/build/components/page-templates/index-legacy.cjs +0 -167
- package/build/components/page-templates/index-legacy.cjs.map +0 -7
- package/build/components/page-templates/view-utils.cjs +0 -79
- package/build/components/page-templates/view-utils.cjs.map +0 -7
- package/build/components/sidebar-navigation-screen-templates-browse/content-legacy.cjs +0 -78
- package/build/components/sidebar-navigation-screen-templates-browse/content-legacy.cjs.map +0 -7
- package/build-module/components/add-new-template-legacy/add-custom-generic-template-modal-content.mjs +0 -91
- package/build-module/components/add-new-template-legacy/add-custom-generic-template-modal-content.mjs.map +0 -7
- package/build-module/components/add-new-template-legacy/add-custom-template-modal-content.mjs +0 -315
- package/build-module/components/add-new-template-legacy/add-custom-template-modal-content.mjs.map +0 -7
- package/build-module/components/add-new-template-legacy/index.mjs +0 -391
- package/build-module/components/add-new-template-legacy/index.mjs.map +0 -7
- package/build-module/components/add-new-template-legacy/utils.mjs +0 -592
- package/build-module/components/add-new-template-legacy/utils.mjs.map +0 -7
- package/build-module/components/page-templates/hooks.mjs +0 -74
- package/build-module/components/page-templates/hooks.mjs.map +0 -7
- package/build-module/components/page-templates/index-legacy.mjs +0 -136
- package/build-module/components/page-templates/index-legacy.mjs.map +0 -7
- package/build-module/components/page-templates/view-utils.mjs +0 -52
- package/build-module/components/page-templates/view-utils.mjs.map +0 -7
- package/build-module/components/sidebar-navigation-screen-templates-browse/content-legacy.mjs +0 -52
- package/build-module/components/sidebar-navigation-screen-templates-browse/content-legacy.mjs.map +0 -7
- package/src/components/add-new-template-legacy/add-custom-generic-template-modal-content.jsx +0 -85
- package/src/components/add-new-template-legacy/add-custom-template-modal-content.jsx +0 -306
- package/src/components/add-new-template-legacy/index.jsx +0 -440
- package/src/components/add-new-template-legacy/utils.js +0 -757
- package/src/components/page-templates/hooks.js +0 -93
- package/src/components/page-templates/index-legacy.jsx +0 -143
- package/src/components/page-templates/view-utils.js +0 -50
- package/src/components/sidebar-navigation-screen-templates-browse/content-legacy.jsx +0 -52
- package/src/components/sidebar-navigation-screen-templates-browse/style.scss +0 -6
package/build-style/style.css
CHANGED
|
@@ -242,6 +242,10 @@
|
|
|
242
242
|
flex-grow: 1;
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
+
.dataviews__search .dataviews-search {
|
|
246
|
+
flex-basis: 210px;
|
|
247
|
+
}
|
|
248
|
+
|
|
245
249
|
.dataviews-no-results,
|
|
246
250
|
.dataviews-loading {
|
|
247
251
|
padding: 0 var(--wpds-dimension-padding-2xl, 24px);
|
|
@@ -513,7 +517,7 @@
|
|
|
513
517
|
}
|
|
514
518
|
|
|
515
519
|
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg {
|
|
516
|
-
|
|
520
|
+
color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e);
|
|
517
521
|
}
|
|
518
522
|
|
|
519
523
|
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus {
|
|
@@ -521,11 +525,11 @@
|
|
|
521
525
|
}
|
|
522
526
|
|
|
523
527
|
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg {
|
|
524
|
-
|
|
528
|
+
color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e);
|
|
525
529
|
}
|
|
526
530
|
|
|
527
531
|
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg {
|
|
528
|
-
|
|
532
|
+
color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9));
|
|
529
533
|
}
|
|
530
534
|
|
|
531
535
|
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover {
|
|
@@ -589,8 +593,9 @@
|
|
|
589
593
|
}
|
|
590
594
|
|
|
591
595
|
.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection {
|
|
596
|
+
/* stylelint-disable-next-line plugin-wpds/no-token-fallback-values -- Preserve custom background theming with older @wordpress/theme runtimes that do not set this token. */
|
|
597
|
+
background-color: var(--wpds-color-background-interactive-neutral, var(--wpds-color-background-surface-neutral-strong, #fff));
|
|
592
598
|
border-color: var(--wpds-color-stroke-interactive-brand-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 85%, black));
|
|
593
|
-
background: var(--wpds-color-background-surface-neutral-strong, #fff);
|
|
594
599
|
}
|
|
595
600
|
|
|
596
601
|
.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected {
|
|
@@ -738,10 +743,6 @@
|
|
|
738
743
|
box-shadow: none;
|
|
739
744
|
}
|
|
740
745
|
|
|
741
|
-
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder {
|
|
742
|
-
color: rgba(30, 30, 30, 0.62);
|
|
743
|
-
}
|
|
744
|
-
|
|
745
746
|
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::placeholder {
|
|
746
747
|
color: rgba(30, 30, 30, 0.62);
|
|
747
748
|
}
|
|
@@ -799,7 +800,8 @@
|
|
|
799
800
|
|
|
800
801
|
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection {
|
|
801
802
|
position: relative;
|
|
802
|
-
|
|
803
|
+
/* stylelint-disable-next-line plugin-wpds/no-token-fallback-values -- Preserve custom background theming with older @wordpress/theme runtimes that do not set this token. */
|
|
804
|
+
background: var(--wpds-color-background-interactive-neutral, var(--wpds-color-background-surface-neutral-strong, #fff));
|
|
803
805
|
color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
|
|
804
806
|
margin: 0;
|
|
805
807
|
padding: 0;
|
|
@@ -824,7 +826,7 @@
|
|
|
824
826
|
|
|
825
827
|
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg {
|
|
826
828
|
--checkmark-size: var(--checkbox-size);
|
|
827
|
-
|
|
829
|
+
color: var(--wpds-color-foreground-interactive-neutral-strong, #f0f0f0);
|
|
828
830
|
position: absolute;
|
|
829
831
|
left: 50%;
|
|
830
832
|
top: 50%;
|
|
@@ -872,10 +874,6 @@
|
|
|
872
874
|
box-shadow: none;
|
|
873
875
|
}
|
|
874
876
|
|
|
875
|
-
.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder {
|
|
876
|
-
color: rgba(30, 30, 30, 0.62);
|
|
877
|
-
}
|
|
878
|
-
|
|
879
877
|
.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder {
|
|
880
878
|
color: rgba(30, 30, 30, 0.62);
|
|
881
879
|
}
|
|
@@ -900,10 +898,6 @@
|
|
|
900
898
|
background: var(--wpds-color-background-surface-neutral-strong, #fff);
|
|
901
899
|
}
|
|
902
900
|
|
|
903
|
-
.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder {
|
|
904
|
-
color: var(--wpds-color-foreground-content-neutral-weak, #707070);
|
|
905
|
-
}
|
|
906
|
-
|
|
907
901
|
.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder {
|
|
908
902
|
color: var(--wpds-color-foreground-content-neutral-weak, #707070);
|
|
909
903
|
}
|
|
@@ -950,10 +944,6 @@
|
|
|
950
944
|
box-sizing: border-box;
|
|
951
945
|
}
|
|
952
946
|
|
|
953
|
-
.dataviews-search {
|
|
954
|
-
flex-basis: 210px;
|
|
955
|
-
}
|
|
956
|
-
|
|
957
947
|
.dataviews-filters__user-input-widget {
|
|
958
948
|
padding: var(--wpds-dimension-padding-lg, 16px);
|
|
959
949
|
}
|
|
@@ -1232,7 +1222,6 @@
|
|
|
1232
1222
|
|
|
1233
1223
|
.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable,
|
|
1234
1224
|
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable {
|
|
1235
|
-
width: -moz-fit-content;
|
|
1236
1225
|
width: fit-content;
|
|
1237
1226
|
}
|
|
1238
1227
|
|
|
@@ -1268,7 +1257,6 @@
|
|
|
1268
1257
|
|
|
1269
1258
|
.dataviews-view-grid .dataviews-view-grid__media img,
|
|
1270
1259
|
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media img {
|
|
1271
|
-
-o-object-fit: cover;
|
|
1272
1260
|
object-fit: cover;
|
|
1273
1261
|
width: 100%;
|
|
1274
1262
|
height: 100%;
|
|
@@ -1304,7 +1292,6 @@
|
|
|
1304
1292
|
|
|
1305
1293
|
.dataviews-view-grid.has-media-fit-contain .dataviews-view-grid__media img,
|
|
1306
1294
|
.dataviews-view-grid-infinite-scroll.has-media-fit-contain .dataviews-view-grid__media img {
|
|
1307
|
-
-o-object-fit: contain;
|
|
1308
1295
|
object-fit: contain;
|
|
1309
1296
|
}
|
|
1310
1297
|
|
|
@@ -1470,7 +1457,6 @@ div.dataviews-view-list {
|
|
|
1470
1457
|
.dataviews-view-list div[role=row] .dataviews-view-list__item-actions,
|
|
1471
1458
|
.dataviews-view-list div[role=article] .dataviews-view-list__item-actions {
|
|
1472
1459
|
display: flex;
|
|
1473
|
-
width: -moz-max-content;
|
|
1474
1460
|
width: max-content;
|
|
1475
1461
|
flex: 0 0 auto;
|
|
1476
1462
|
gap: var(--wpds-dimension-gap-xs, 4px);
|
|
@@ -1565,8 +1551,6 @@ div.dataviews-view-list {
|
|
|
1565
1551
|
z-index: 1;
|
|
1566
1552
|
inset: 0;
|
|
1567
1553
|
scroll-margin: var(--wpds-dimension-gap-sm, 8px) 0;
|
|
1568
|
-
-webkit-appearance: none;
|
|
1569
|
-
-moz-appearance: none;
|
|
1570
1554
|
appearance: none;
|
|
1571
1555
|
border: none;
|
|
1572
1556
|
background: none;
|
|
@@ -1611,7 +1595,6 @@ div.dataviews-view-list {
|
|
|
1611
1595
|
.dataviews-view-list .dataviews-view-list__media-wrapper img {
|
|
1612
1596
|
width: 100%;
|
|
1613
1597
|
height: 100%;
|
|
1614
|
-
-o-object-fit: cover;
|
|
1615
1598
|
object-fit: cover;
|
|
1616
1599
|
}
|
|
1617
1600
|
|
|
@@ -1996,7 +1979,6 @@ div.dataviews-view-list {
|
|
|
1996
1979
|
.dataviews-column-primary__media img {
|
|
1997
1980
|
width: var(--wpds-dimension-size-md, 32px);
|
|
1998
1981
|
height: var(--wpds-dimension-size-md, 32px);
|
|
1999
|
-
-o-object-fit: cover;
|
|
2000
1982
|
object-fit: cover;
|
|
2001
1983
|
}
|
|
2002
1984
|
|
|
@@ -2077,7 +2059,6 @@ div.dataviews-view-list {
|
|
|
2077
2059
|
}
|
|
2078
2060
|
|
|
2079
2061
|
.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field--clickable {
|
|
2080
|
-
width: -moz-fit-content;
|
|
2081
2062
|
width: fit-content;
|
|
2082
2063
|
}
|
|
2083
2064
|
|
|
@@ -2120,7 +2101,6 @@ div.dataviews-view-list {
|
|
|
2120
2101
|
}
|
|
2121
2102
|
|
|
2122
2103
|
.dataviews-view-picker-grid .dataviews-view-picker-grid__media img {
|
|
2123
|
-
-o-object-fit: cover;
|
|
2124
2104
|
object-fit: cover;
|
|
2125
2105
|
width: 100%;
|
|
2126
2106
|
height: 100%;
|
|
@@ -2143,7 +2123,6 @@ div.dataviews-view-list {
|
|
|
2143
2123
|
}
|
|
2144
2124
|
|
|
2145
2125
|
.dataviews-view-picker-grid.has-media-fit-contain .dataviews-view-picker-grid__media img {
|
|
2146
|
-
-o-object-fit: contain;
|
|
2147
2126
|
object-fit: contain;
|
|
2148
2127
|
}
|
|
2149
2128
|
|
|
@@ -2310,7 +2289,6 @@ div.dataviews-view-list {
|
|
|
2310
2289
|
|
|
2311
2290
|
.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions {
|
|
2312
2291
|
display: flex;
|
|
2313
|
-
width: -moz-max-content;
|
|
2314
2292
|
width: max-content;
|
|
2315
2293
|
flex: 0 0 auto;
|
|
2316
2294
|
}
|
|
@@ -2444,7 +2422,6 @@ div.dataviews-view-list {
|
|
|
2444
2422
|
width: 100%;
|
|
2445
2423
|
height: 100%;
|
|
2446
2424
|
margin: 0 auto;
|
|
2447
|
-
-o-object-fit: cover;
|
|
2448
2425
|
object-fit: cover;
|
|
2449
2426
|
border-radius: 50%;
|
|
2450
2427
|
box-sizing: border-box;
|
|
@@ -2661,7 +2638,6 @@ div.dataviews-view-list {
|
|
|
2661
2638
|
width: 100%;
|
|
2662
2639
|
height: 100%;
|
|
2663
2640
|
margin: 0 auto;
|
|
2664
|
-
-o-object-fit: cover;
|
|
2665
2641
|
object-fit: cover;
|
|
2666
2642
|
border-radius: 50%;
|
|
2667
2643
|
box-sizing: border-box;
|
|
@@ -2718,25 +2694,17 @@ div.dataviews-view-list {
|
|
|
2718
2694
|
}
|
|
2719
2695
|
|
|
2720
2696
|
.dataviews-validated-control__wrapper-with-error-delegate:has(input[type=radio]:invalid[data-validity-visible]), .dataviews-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-form-token-field__input-container:not(:has([aria-expanded=true])), .dataviews-validated-control .components-combobox-control__suggestions-container:has(input:invalid[data-validity-visible]):not(:has([aria-expanded=true])), .dataviews-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop {
|
|
2721
|
-
--focus-color: #cc1818;
|
|
2722
|
-
}
|
|
2723
|
-
|
|
2724
|
-
.dataviews-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop {
|
|
2725
|
-
border-color: #cc1818;
|
|
2697
|
+
--focus-color: var(--wpds-color-stroke-interactive-error, #cc1818);
|
|
2726
2698
|
}
|
|
2727
2699
|
|
|
2728
|
-
.dataviews-validated-control .components-combobox-control__suggestions-container:has(input:invalid[data-validity-visible]):not(:has([aria-expanded=true])) {
|
|
2729
|
-
border-color: #cc1818;
|
|
2700
|
+
.dataviews-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-form-token-field__input-container:not(:has([aria-expanded=true])), .dataviews-validated-control .components-combobox-control__suggestions-container:has(input:invalid[data-validity-visible]):not(:has([aria-expanded=true])), .dataviews-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop {
|
|
2701
|
+
border-color: var(--wpds-color-stroke-interactive-error, #cc1818);
|
|
2730
2702
|
}
|
|
2731
2703
|
|
|
2732
2704
|
.dataviews-validated-control__wrapper-with-error-delegate {
|
|
2733
2705
|
position: relative;
|
|
2734
2706
|
}
|
|
2735
2707
|
|
|
2736
|
-
.dataviews-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-form-token-field__input-container:not(:has([aria-expanded=true])) {
|
|
2737
|
-
border-color: #cc1818;
|
|
2738
|
-
}
|
|
2739
|
-
|
|
2740
2708
|
.dataviews-validated-control__error-delegate {
|
|
2741
2709
|
position: absolute;
|
|
2742
2710
|
top: 0;
|
|
@@ -3130,7 +3098,7 @@ div.dataviews-view-list {
|
|
|
3130
3098
|
display: grid;
|
|
3131
3099
|
align-items: center;
|
|
3132
3100
|
grid-template-columns: min-content 1fr min-content;
|
|
3133
|
-
|
|
3101
|
+
gap: 4px 8px;
|
|
3134
3102
|
color: #1e1e1e;
|
|
3135
3103
|
}
|
|
3136
3104
|
|
|
@@ -3415,9 +3383,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-exp
|
|
|
3415
3383
|
fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-thumbnail {
|
|
3416
3384
|
width: 100%;
|
|
3417
3385
|
height: 100%;
|
|
3418
|
-
-o-object-fit: cover;
|
|
3419
3386
|
object-fit: cover;
|
|
3420
|
-
-o-object-position: 50% 50%;
|
|
3421
3387
|
object-position: 50% 50%;
|
|
3422
3388
|
}
|
|
3423
3389
|
|
|
@@ -3479,7 +3445,6 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
3479
3445
|
.fields-controls__author-avatar img {
|
|
3480
3446
|
width: 16px;
|
|
3481
3447
|
height: 16px;
|
|
3482
|
-
-o-object-fit: cover;
|
|
3483
3448
|
object-fit: cover;
|
|
3484
3449
|
opacity: 0;
|
|
3485
3450
|
border-radius: 100%;
|
|
@@ -3517,10 +3482,6 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
3517
3482
|
margin: 0;
|
|
3518
3483
|
}
|
|
3519
3484
|
|
|
3520
|
-
.fields-controls__slug .fields-controls__slug-external-icon {
|
|
3521
|
-
margin-left: 5ch;
|
|
3522
|
-
}
|
|
3523
|
-
|
|
3524
3485
|
.fields-controls__slug .fields-controls__slug-input input.components-input-control__input {
|
|
3525
3486
|
padding-inline-start: 0 !important;
|
|
3526
3487
|
}
|
|
@@ -4420,11 +4381,6 @@ button.font-library__upload-area {
|
|
|
4420
4381
|
.edit-site-custom-template-modal__contents-wrapper > * {
|
|
4421
4382
|
width: 100%;
|
|
4422
4383
|
}
|
|
4423
|
-
.edit-site-custom-template-modal__contents-wrapper__suggestions_list {
|
|
4424
|
-
margin-left: -12px;
|
|
4425
|
-
margin-right: -12px;
|
|
4426
|
-
width: calc(100% + 24px);
|
|
4427
|
-
}
|
|
4428
4384
|
.edit-site-custom-template-modal__contents > .components-button {
|
|
4429
4385
|
height: auto;
|
|
4430
4386
|
justify-content: center;
|
|
@@ -4436,8 +4392,12 @@ button.font-library__upload-area {
|
|
|
4436
4392
|
}
|
|
4437
4393
|
@media (min-width: 600px) {
|
|
4438
4394
|
.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list {
|
|
4439
|
-
max-height: 224px;
|
|
4440
4395
|
overflow-y: auto;
|
|
4396
|
+
max-height: calc(224px + 4 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)));
|
|
4397
|
+
padding: calc(2 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)));
|
|
4398
|
+
margin-inline: calc(-2 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)));
|
|
4399
|
+
width: calc(100% + 4 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)));
|
|
4400
|
+
scroll-padding-block: calc(2 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)));
|
|
4441
4401
|
}
|
|
4442
4402
|
}
|
|
4443
4403
|
.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item {
|
|
@@ -4465,9 +4425,6 @@ button.font-library__upload-area {
|
|
|
4465
4425
|
.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus {
|
|
4466
4426
|
background-color: #f0f0f0;
|
|
4467
4427
|
}
|
|
4468
|
-
.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled) {
|
|
4469
|
-
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset;
|
|
4470
|
-
}
|
|
4471
4428
|
.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title, .edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info {
|
|
4472
4429
|
overflow: hidden;
|
|
4473
4430
|
text-overflow: ellipsis;
|
|
@@ -4501,7 +4458,7 @@ button.font-library__upload-area {
|
|
|
4501
4458
|
}
|
|
4502
4459
|
.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg,
|
|
4503
4460
|
.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg {
|
|
4504
|
-
|
|
4461
|
+
color: var(--wp-admin-theme-color);
|
|
4505
4462
|
}
|
|
4506
4463
|
.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name {
|
|
4507
4464
|
flex-grow: 1;
|
|
@@ -4522,7 +4479,6 @@ button.font-library__upload-area {
|
|
|
4522
4479
|
flex-direction: column;
|
|
4523
4480
|
border: 1px solid #ddd;
|
|
4524
4481
|
justify-content: center;
|
|
4525
|
-
outline: 1px solid transparent;
|
|
4526
4482
|
}
|
|
4527
4483
|
.edit-site-custom-template-modal__contents > .components-button span:first-child,
|
|
4528
4484
|
.edit-site-add-new-template__template-list__contents > .components-button span:first-child {
|
|
@@ -4542,12 +4498,6 @@ button.font-library__upload-area {
|
|
|
4542
4498
|
.edit-site-add-new-template__template-list__contents > .components-button:hover span {
|
|
4543
4499
|
color: var(--wp-admin-theme-color);
|
|
4544
4500
|
}
|
|
4545
|
-
.edit-site-custom-template-modal__contents > .components-button:focus,
|
|
4546
|
-
.edit-site-add-new-template__template-list__contents > .components-button:focus {
|
|
4547
|
-
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
4548
|
-
border-color: transparent;
|
|
4549
|
-
outline: 3px solid transparent;
|
|
4550
|
-
}
|
|
4551
4501
|
.edit-site-custom-template-modal__contents > .components-button:focus span:first-child,
|
|
4552
4502
|
.edit-site-add-new-template__template-list__contents > .components-button:focus span:first-child {
|
|
4553
4503
|
color: var(--wp-admin-theme-color);
|
|
@@ -4773,8 +4723,7 @@ button.font-library__upload-area {
|
|
|
4773
4723
|
.edit-site-welcome-guide__image > img {
|
|
4774
4724
|
display: block;
|
|
4775
4725
|
max-width: 100%;
|
|
4776
|
-
|
|
4777
|
-
object-fit: cover;
|
|
4726
|
+
object-fit: cover;
|
|
4778
4727
|
}
|
|
4779
4728
|
.edit-site-welcome-guide__heading {
|
|
4780
4729
|
font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
@@ -4797,7 +4746,7 @@ button.font-library__upload-area {
|
|
|
4797
4746
|
vertical-align: text-top;
|
|
4798
4747
|
}
|
|
4799
4748
|
.edit-site-welcome-guide .components-button:hover svg {
|
|
4800
|
-
|
|
4749
|
+
color: #fff;
|
|
4801
4750
|
}
|
|
4802
4751
|
|
|
4803
4752
|
.edit-site-layout {
|
|
@@ -5366,11 +5315,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
5366
5315
|
margin-right: -16px;
|
|
5367
5316
|
}
|
|
5368
5317
|
|
|
5369
|
-
.edit-site-sidebar-navigation-screen-templates-browse {
|
|
5370
|
-
margin-left: -16px;
|
|
5371
|
-
margin-right: -16px;
|
|
5372
|
-
}
|
|
5373
|
-
|
|
5374
5318
|
.edit-site-sidebar-dataviews {
|
|
5375
5319
|
margin-left: -16px;
|
|
5376
5320
|
margin-right: -16px;
|
|
@@ -5480,7 +5424,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
5480
5424
|
body:has(.edit-site-resizable-frame__inner.is-resizing) {
|
|
5481
5425
|
cursor: col-resize;
|
|
5482
5426
|
-webkit-user-select: none;
|
|
5483
|
-
-moz-user-select: none;
|
|
5484
5427
|
user-select: none;
|
|
5485
5428
|
}
|
|
5486
5429
|
|
|
@@ -5566,6 +5509,12 @@ body:has(.edit-site-resizable-frame__inner.is-resizing) {
|
|
|
5566
5509
|
color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e);
|
|
5567
5510
|
}
|
|
5568
5511
|
|
|
5512
|
+
.edit-site-styles__content {
|
|
5513
|
+
flex-grow: 1;
|
|
5514
|
+
min-height: 0;
|
|
5515
|
+
background-color: var(--wpds-color-background-surface-neutral-strong, #fff);
|
|
5516
|
+
}
|
|
5517
|
+
|
|
5569
5518
|
.show-icon-labels .edit-site-styles__header-actions .components-button.has-icon {
|
|
5570
5519
|
width: auto;
|
|
5571
5520
|
padding: 0 var(--wpds-dimension-padding-xs, 4px);
|
|
@@ -5578,6 +5527,14 @@ body:has(.edit-site-resizable-frame__inner.is-resizing) {
|
|
|
5578
5527
|
font-size: var(--wpds-typography-font-size-sm, 12px);
|
|
5579
5528
|
}
|
|
5580
5529
|
|
|
5530
|
+
.edit-site-sidebar-identity__form {
|
|
5531
|
+
flex-grow: 1;
|
|
5532
|
+
min-height: 0;
|
|
5533
|
+
overflow: auto;
|
|
5534
|
+
background-color: var(--wpds-color-background-surface-neutral-strong, #fff);
|
|
5535
|
+
padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px);
|
|
5536
|
+
}
|
|
5537
|
+
|
|
5581
5538
|
::view-transition-image-pair(root) {
|
|
5582
5539
|
isolation: auto;
|
|
5583
5540
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.0",
|
|
4
4
|
"description": "Edit Site Page module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -47,45 +47,48 @@
|
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@react-spring/web": "^9.4.5",
|
|
50
|
-
"@wordpress/a11y": "^4.
|
|
51
|
-
"@wordpress/admin-ui": "^2.
|
|
52
|
-
"@wordpress/api-fetch": "^7.
|
|
53
|
-
"@wordpress/base-styles": "^13.
|
|
54
|
-
"@wordpress/block-editor": "^17.
|
|
55
|
-
"@wordpress/block-library": "^
|
|
56
|
-
"@wordpress/blocks": "^16.0.
|
|
57
|
-
"@wordpress/commands": "^1.
|
|
58
|
-
"@wordpress/components": "^40.1.
|
|
59
|
-
"@wordpress/compose": "^8.
|
|
60
|
-
"@wordpress/core-data": "^
|
|
61
|
-
"@wordpress/data": "^10.
|
|
62
|
-
"@wordpress/dataviews": "^
|
|
63
|
-
"@wordpress/deprecated": "^4.
|
|
64
|
-
"@wordpress/dom": "^4.
|
|
65
|
-
"@wordpress/editor": "^
|
|
66
|
-
"@wordpress/element": "^8.
|
|
67
|
-
"@wordpress/fields": "^0.
|
|
68
|
-
"@wordpress/global-styles-engine": "^1.
|
|
69
|
-
"@wordpress/global-styles-ui": "^1.
|
|
70
|
-
"@wordpress/html-entities": "^4.
|
|
71
|
-
"@wordpress/i18n": "^6.
|
|
72
|
-
"@wordpress/icons": "^
|
|
73
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
74
|
-
"@wordpress/keycodes": "^4.
|
|
75
|
-
"@wordpress/notices": "^5.
|
|
76
|
-
"@wordpress/patterns": "^2.
|
|
77
|
-
"@wordpress/plugins": "^7.
|
|
78
|
-
"@wordpress/preferences": "^4.
|
|
79
|
-
"@wordpress/private-apis": "^1.
|
|
80
|
-
"@wordpress/router": "^1.
|
|
81
|
-
"@wordpress/theme": "^2.1.
|
|
82
|
-
"@wordpress/ui": "^0.22.
|
|
83
|
-
"@wordpress/url": "^4.
|
|
84
|
-
"@wordpress/views": "^1.
|
|
85
|
-
"@wordpress/widgets": "^4.
|
|
50
|
+
"@wordpress/a11y": "^4.55.0",
|
|
51
|
+
"@wordpress/admin-ui": "^2.10.0",
|
|
52
|
+
"@wordpress/api-fetch": "^7.55.0",
|
|
53
|
+
"@wordpress/base-styles": "^13.1.0",
|
|
54
|
+
"@wordpress/block-editor": "^17.1.0",
|
|
55
|
+
"@wordpress/block-library": "^11.0.0",
|
|
56
|
+
"@wordpress/blocks": "^16.0.0",
|
|
57
|
+
"@wordpress/commands": "^1.55.0",
|
|
58
|
+
"@wordpress/components": "^40.1.0",
|
|
59
|
+
"@wordpress/compose": "^8.8.0",
|
|
60
|
+
"@wordpress/core-data": "^8.0.0",
|
|
61
|
+
"@wordpress/data": "^10.55.0",
|
|
62
|
+
"@wordpress/dataviews": "^19.0.0",
|
|
63
|
+
"@wordpress/deprecated": "^4.55.0",
|
|
64
|
+
"@wordpress/dom": "^4.55.0",
|
|
65
|
+
"@wordpress/editor": "^15.0.0",
|
|
66
|
+
"@wordpress/element": "^8.7.0",
|
|
67
|
+
"@wordpress/fields": "^0.47.0",
|
|
68
|
+
"@wordpress/global-styles-engine": "^1.22.0",
|
|
69
|
+
"@wordpress/global-styles-ui": "^1.22.0",
|
|
70
|
+
"@wordpress/html-entities": "^4.55.0",
|
|
71
|
+
"@wordpress/i18n": "^6.28.0",
|
|
72
|
+
"@wordpress/icons": "^16.0.0",
|
|
73
|
+
"@wordpress/keyboard-shortcuts": "^5.55.0",
|
|
74
|
+
"@wordpress/keycodes": "^4.55.0",
|
|
75
|
+
"@wordpress/notices": "^5.55.0",
|
|
76
|
+
"@wordpress/patterns": "^2.55.0",
|
|
77
|
+
"@wordpress/plugins": "^7.55.0",
|
|
78
|
+
"@wordpress/preferences": "^4.55.0",
|
|
79
|
+
"@wordpress/private-apis": "^1.55.0",
|
|
80
|
+
"@wordpress/router": "^1.55.0",
|
|
81
|
+
"@wordpress/theme": "^2.1.0",
|
|
82
|
+
"@wordpress/ui": "^0.22.0",
|
|
83
|
+
"@wordpress/url": "^4.55.0",
|
|
84
|
+
"@wordpress/views": "^1.22.0",
|
|
85
|
+
"@wordpress/widgets": "^4.55.0",
|
|
86
86
|
"change-case": "^4.1.2",
|
|
87
87
|
"clsx": "^2.1.1"
|
|
88
88
|
},
|
|
89
|
+
"devDependencies": {
|
|
90
|
+
"vitest": "^5.0.0"
|
|
91
|
+
},
|
|
89
92
|
"peerDependencies": {
|
|
90
93
|
"react": "^18 || ^19",
|
|
91
94
|
"react-dom": "^18 || ^19"
|
|
@@ -93,5 +96,5 @@
|
|
|
93
96
|
"publishConfig": {
|
|
94
97
|
"access": "public"
|
|
95
98
|
},
|
|
96
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "485f42ae8a1c58ceea18371a507fd4acfa86fbd8"
|
|
97
100
|
}
|
|
@@ -165,7 +165,9 @@ function AddCustomTemplateModalContent( {
|
|
|
165
165
|
onBack,
|
|
166
166
|
containerRef,
|
|
167
167
|
} ) {
|
|
168
|
-
const [ showSearchEntities, setShowSearchEntities ] = useState(
|
|
168
|
+
const [ showSearchEntities, setShowSearchEntities ] = useState(
|
|
169
|
+
entityForSuggestions.hasGeneralTemplate
|
|
170
|
+
);
|
|
169
171
|
|
|
170
172
|
// Focus on the first focusable element when the modal opens.
|
|
171
173
|
// We handle focus management in the parent modal, just need to focus on the first focusable element.
|
|
@@ -38,6 +38,7 @@ import { focus } from '@wordpress/dom';
|
|
|
38
38
|
import { TEMPLATE_POST_TYPE } from '../../utils/constants';
|
|
39
39
|
import AddCustomTemplateModalContent from './add-custom-template-modal-content';
|
|
40
40
|
import {
|
|
41
|
+
useExistingTemplates,
|
|
41
42
|
useDefaultTemplateTypes,
|
|
42
43
|
useTaxonomiesMenuItems,
|
|
43
44
|
usePostTypeMenuItems,
|
|
@@ -196,9 +197,7 @@ function NewTemplateModal( { onClose } ) {
|
|
|
196
197
|
status: 'publish',
|
|
197
198
|
title,
|
|
198
199
|
// This adds a post meta field in template that is part of `is_custom` value calculation.
|
|
199
|
-
|
|
200
|
-
is_wp_suggestion: isWPSuggestion,
|
|
201
|
-
},
|
|
200
|
+
is_wp_suggestion: isWPSuggestion,
|
|
202
201
|
},
|
|
203
202
|
{ throwOnError: true }
|
|
204
203
|
);
|
|
@@ -375,9 +374,15 @@ function NewTemplate() {
|
|
|
375
374
|
}
|
|
376
375
|
|
|
377
376
|
function useMissingTemplates( setEntityForSuggestions, onClick ) {
|
|
377
|
+
const existingTemplates = useExistingTemplates();
|
|
378
378
|
const defaultTemplateTypes = useDefaultTemplateTypes();
|
|
379
|
+
const existingTemplateSlugs = ( existingTemplates || [] ).map(
|
|
380
|
+
( { slug } ) => slug
|
|
381
|
+
);
|
|
379
382
|
const missingDefaultTemplates = ( defaultTemplateTypes || [] ).filter(
|
|
380
|
-
( template ) =>
|
|
383
|
+
( template ) =>
|
|
384
|
+
DEFAULT_TEMPLATE_SLUGS.includes( template.slug ) &&
|
|
385
|
+
! existingTemplateSlugs.includes( template.slug )
|
|
381
386
|
);
|
|
382
387
|
const onClickMenuItem = ( _entityForSuggestions ) => {
|
|
383
388
|
onClick?.();
|
|
@@ -10,12 +10,6 @@
|
|
|
10
10
|
> * {
|
|
11
11
|
width: 100%;
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
&__suggestions_list {
|
|
15
|
-
margin-left: - $grid-unit-15;
|
|
16
|
-
margin-right: - $grid-unit-15;
|
|
17
|
-
width: calc(100% + #{$grid-unit-15 * 2});
|
|
18
|
-
}
|
|
19
13
|
}
|
|
20
14
|
|
|
21
15
|
&__contents {
|
|
@@ -31,8 +25,14 @@
|
|
|
31
25
|
|
|
32
26
|
.edit-site-custom-template-modal__suggestions_list {
|
|
33
27
|
@include break-small() {
|
|
34
|
-
max-height: $grid-unit-70 * 4; // Height of four buttons
|
|
35
28
|
overflow-y: auto;
|
|
29
|
+
// Height of four buttons
|
|
30
|
+
max-height: calc(#{$grid-unit-70 * 4} + 4 * var(--wpds-border-width-focus));
|
|
31
|
+
// Room for the focus ring, and keep it in view while arrowing.
|
|
32
|
+
padding: calc(2 * var(--wpds-border-width-focus));
|
|
33
|
+
margin-inline: calc(-2 * var(--wpds-border-width-focus));
|
|
34
|
+
width: calc(100% + 4 * var(--wpds-border-width-focus));
|
|
35
|
+
scroll-padding-block: calc(2 * var(--wpds-border-width-focus));
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
&__list-item {
|
|
@@ -65,10 +65,6 @@
|
|
|
65
65
|
background-color: $gray-100;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
&:focus:not(:disabled) {
|
|
69
|
-
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
68
|
&__title,
|
|
73
69
|
&__info {
|
|
74
70
|
overflow: hidden;
|
|
@@ -112,7 +108,7 @@
|
|
|
112
108
|
.edit-site-add-new-template__template-button,
|
|
113
109
|
.edit-site-add-new-template__custom-template-button {
|
|
114
110
|
svg {
|
|
115
|
-
|
|
111
|
+
color: var(--wp-admin-theme-color);
|
|
116
112
|
}
|
|
117
113
|
}
|
|
118
114
|
|
|
@@ -141,9 +137,6 @@
|
|
|
141
137
|
border: $border-width solid $gray-300;
|
|
142
138
|
justify-content: center;
|
|
143
139
|
|
|
144
|
-
// Show the boundary of the button, in High Contrast Mode.
|
|
145
|
-
outline: 1px solid transparent;
|
|
146
|
-
|
|
147
140
|
span:first-child {
|
|
148
141
|
color: $gray-900;
|
|
149
142
|
}
|
|
@@ -163,12 +156,6 @@
|
|
|
163
156
|
}
|
|
164
157
|
|
|
165
158
|
&:focus {
|
|
166
|
-
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
167
|
-
border-color: transparent;
|
|
168
|
-
|
|
169
|
-
// Windows High Contrast mode will show this outline, but not the box-shadow.
|
|
170
|
-
outline: 3px solid transparent;
|
|
171
|
-
|
|
172
159
|
span:first-child {
|
|
173
160
|
color: var(--wp-admin-theme-color);
|
|
174
161
|
}
|