@wordpress/block-editor 14.3.4 → 14.3.5

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.
Files changed (103) hide show
  1. package/build/components/block-variation-picker/index.js +2 -4
  2. package/build/components/block-variation-picker/index.js.map +1 -1
  3. package/build/components/block-variation-transforms/index.js +3 -4
  4. package/build/components/block-variation-transforms/index.js.map +1 -1
  5. package/build/components/button-block-appender/index.js +2 -4
  6. package/build/components/button-block-appender/index.js.map +1 -1
  7. package/build/components/colors-gradients/dropdown.js +2 -4
  8. package/build/components/colors-gradients/dropdown.js.map +1 -1
  9. package/build/components/global-styles/color-panel.js +2 -4
  10. package/build/components/global-styles/color-panel.js.map +1 -1
  11. package/build/components/global-styles/filters-panel.js +2 -4
  12. package/build/components/global-styles/filters-panel.js.map +1 -1
  13. package/build/components/global-styles/shadow-panel-components.js +24 -29
  14. package/build/components/global-styles/shadow-panel-components.js.map +1 -1
  15. package/build/components/inspector-controls-tabs/index.js +11 -8
  16. package/build/components/inspector-controls-tabs/index.js.map +1 -1
  17. package/build/components/inspector-popover-header/index.js +4 -8
  18. package/build/components/inspector-popover-header/index.js.map +1 -1
  19. package/build/components/link-control/index.js +4 -8
  20. package/build/components/link-control/index.js.map +1 -1
  21. package/build/components/link-control/settings-drawer.js +2 -4
  22. package/build/components/link-control/settings-drawer.js.map +1 -1
  23. package/build/components/list-view/block-select-button.js +1 -4
  24. package/build/components/list-view/block-select-button.js.map +1 -1
  25. package/build/components/media-placeholder/index.js +12 -24
  26. package/build/components/media-placeholder/index.js.map +1 -1
  27. package/build/components/skip-to-selected-block/index.js +2 -4
  28. package/build/components/skip-to-selected-block/index.js.map +1 -1
  29. package/build/components/tool-selector/index.js +2 -4
  30. package/build/components/tool-selector/index.js.map +1 -1
  31. package/build/components/url-input/button.js +14 -16
  32. package/build/components/url-input/button.js.map +1 -1
  33. package/build/components/url-input/index.js +2 -4
  34. package/build/components/url-input/index.js.map +1 -1
  35. package/build/layouts/flex.js +6 -38
  36. package/build/layouts/flex.js.map +1 -1
  37. package/build-module/components/block-variation-picker/index.js +2 -4
  38. package/build-module/components/block-variation-picker/index.js.map +1 -1
  39. package/build-module/components/block-variation-transforms/index.js +3 -4
  40. package/build-module/components/block-variation-transforms/index.js.map +1 -1
  41. package/build-module/components/button-block-appender/index.js +2 -4
  42. package/build-module/components/button-block-appender/index.js.map +1 -1
  43. package/build-module/components/colors-gradients/dropdown.js +2 -4
  44. package/build-module/components/colors-gradients/dropdown.js.map +1 -1
  45. package/build-module/components/global-styles/color-panel.js +2 -4
  46. package/build-module/components/global-styles/color-panel.js.map +1 -1
  47. package/build-module/components/global-styles/filters-panel.js +2 -4
  48. package/build-module/components/global-styles/filters-panel.js.map +1 -1
  49. package/build-module/components/global-styles/shadow-panel-components.js +25 -30
  50. package/build-module/components/global-styles/shadow-panel-components.js.map +1 -1
  51. package/build-module/components/inspector-controls-tabs/index.js +12 -9
  52. package/build-module/components/inspector-controls-tabs/index.js.map +1 -1
  53. package/build-module/components/inspector-popover-header/index.js +4 -8
  54. package/build-module/components/inspector-popover-header/index.js.map +1 -1
  55. package/build-module/components/link-control/index.js +4 -8
  56. package/build-module/components/link-control/index.js.map +1 -1
  57. package/build-module/components/link-control/settings-drawer.js +2 -4
  58. package/build-module/components/link-control/settings-drawer.js.map +1 -1
  59. package/build-module/components/list-view/block-select-button.js +2 -5
  60. package/build-module/components/list-view/block-select-button.js.map +1 -1
  61. package/build-module/components/media-placeholder/index.js +12 -24
  62. package/build-module/components/media-placeholder/index.js.map +1 -1
  63. package/build-module/components/skip-to-selected-block/index.js +2 -4
  64. package/build-module/components/skip-to-selected-block/index.js.map +1 -1
  65. package/build-module/components/tool-selector/index.js +2 -4
  66. package/build-module/components/tool-selector/index.js.map +1 -1
  67. package/build-module/components/url-input/button.js +15 -17
  68. package/build-module/components/url-input/button.js.map +1 -1
  69. package/build-module/components/url-input/index.js +2 -4
  70. package/build-module/components/url-input/index.js.map +1 -1
  71. package/build-module/layouts/flex.js +7 -39
  72. package/build-module/layouts/flex.js.map +1 -1
  73. package/build-style/content-rtl.css +0 -3
  74. package/build-style/content.css +0 -3
  75. package/build-style/style-rtl.css +18 -25
  76. package/build-style/style.css +18 -25
  77. package/package.json +5 -5
  78. package/src/components/block-inspector/style.scss +2 -0
  79. package/src/components/block-tools/style.scss +5 -0
  80. package/src/components/block-variation-picker/index.js +1 -2
  81. package/src/components/block-variation-transforms/index.js +2 -2
  82. package/src/components/button-block-appender/content.scss +0 -5
  83. package/src/components/button-block-appender/index.js +1 -2
  84. package/src/components/colors-gradients/dropdown.js +1 -5
  85. package/src/components/global-styles/color-panel.js +1 -5
  86. package/src/components/global-styles/filters-panel.js +1 -2
  87. package/src/components/global-styles/shadow-panel-components.js +28 -33
  88. package/src/components/global-styles/style.scss +5 -0
  89. package/src/components/inspector-controls-tabs/index.js +21 -20
  90. package/src/components/inspector-popover-header/index.js +2 -4
  91. package/src/components/inspector-popover-header/style.scss +0 -13
  92. package/src/components/link-control/index.js +2 -4
  93. package/src/components/link-control/settings-drawer.js +1 -2
  94. package/src/components/list-view/block-select-button.js +2 -5
  95. package/src/components/list-view/style.scss +9 -0
  96. package/src/components/media-placeholder/index.js +6 -12
  97. package/src/components/skip-to-selected-block/index.js +1 -2
  98. package/src/components/skip-to-selected-block/style.scss +0 -9
  99. package/src/components/tool-selector/index.js +1 -2
  100. package/src/components/url-input/button.js +16 -12
  101. package/src/components/url-input/index.js +1 -2
  102. package/src/components/url-input/style.scss +0 -6
  103. package/src/layouts/flex.js +10 -53
@@ -339,6 +339,8 @@ iframe[name=editor-canvas] {
339
339
 
340
340
  .block-editor-block-inspector__tab-item {
341
341
  flex: 1 1 0px;
342
+ display: flex;
343
+ justify-content: center;
342
344
  }
343
345
 
344
346
  /**
@@ -562,6 +564,9 @@ iframe[name=editor-canvas] {
562
564
  background: none;
563
565
  border: none;
564
566
  }
567
+ .zoom-out-toolbar .zoom-out-toolbar-button {
568
+ height: 40px;
569
+ }
565
570
 
566
571
  .block-editor-block-tools__zoom-out-mode-inserter-button {
567
572
  visibility: hidden;
@@ -1668,10 +1673,14 @@ iframe[name=editor-canvas] {
1668
1673
  }
1669
1674
 
1670
1675
  .block-editor-global-styles__shadow-indicator {
1676
+ appearance: none;
1677
+ background: none;
1671
1678
  color: #2f2f2f;
1672
1679
  border: #e0e0e0 1px solid;
1673
1680
  border-radius: 2px;
1674
1681
  cursor: pointer;
1682
+ display: inline-flex;
1683
+ align-items: center;
1675
1684
  padding: 0;
1676
1685
  height: 26px;
1677
1686
  width: 26px;
@@ -2037,17 +2046,6 @@ iframe[name=editor-canvas] {
2037
2046
  margin-bottom: 16px;
2038
2047
  }
2039
2048
 
2040
- [class].block-editor-inspector-popover-header__action {
2041
- height: 24px;
2042
- }
2043
- [class].block-editor-inspector-popover-header__action.has-icon {
2044
- min-width: 24px;
2045
- padding: 0;
2046
- }
2047
- [class].block-editor-inspector-popover-header__action:not(.has-icon) {
2048
- text-decoration: underline;
2049
- }
2050
-
2051
2049
  .items-justified-left {
2052
2050
  justify-content: flex-start;
2053
2051
  }
@@ -2575,6 +2573,15 @@ iframe[name=editor-canvas] {
2575
2573
  text-align: left;
2576
2574
  position: relative;
2577
2575
  white-space: nowrap;
2576
+ border-radius: 2px;
2577
+ box-sizing: border-box;
2578
+ color: inherit;
2579
+ font-family: inherit;
2580
+ font-size: 13px;
2581
+ font-weight: 400;
2582
+ margin: 0;
2583
+ text-decoration: none;
2584
+ transition: box-shadow 0.1s linear;
2578
2585
  }
2579
2586
  .block-editor-list-view-leaf .block-editor-list-view-block-contents.is-dropping-before::before {
2580
2587
  content: "";
@@ -3078,18 +3085,9 @@ iframe[name=editor-canvas] {
3078
3085
  top: -9999em;
3079
3086
  }
3080
3087
  .block-editor-skip-to-selected-block:focus {
3081
- height: auto;
3082
- width: auto;
3083
- display: block;
3084
3088
  font-size: 14px;
3085
3089
  font-weight: 600;
3086
- padding: 15px 23px 14px;
3087
3090
  background: #f1f1f1;
3088
- color: var(--wp-admin-theme-color);
3089
- line-height: normal;
3090
- box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
3091
- text-decoration: none;
3092
- outline: none;
3093
3091
  z-index: 100000;
3094
3092
  }
3095
3093
 
@@ -3253,11 +3251,6 @@ iframe[name=editor-canvas] {
3253
3251
  min-width: 0;
3254
3252
  align-items: flex-start;
3255
3253
  }
3256
- .block-editor-url-input__button-modal-line .components-button {
3257
- flex-shrink: 0;
3258
- width: 36px;
3259
- height: 36px;
3260
- }
3261
3254
 
3262
3255
  .block-editor-url-popover__additional-controls {
3263
3256
  border-top: 1px solid #1e1e1e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-editor",
3
- "version": "14.3.4",
3
+ "version": "14.3.5",
4
4
  "description": "Generic block editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -41,8 +41,8 @@
41
41
  "@wordpress/blob": "^4.8.1",
42
42
  "@wordpress/block-serialization-default-parser": "^5.8.1",
43
43
  "@wordpress/blocks": "^13.8.4",
44
- "@wordpress/commands": "^1.8.4",
45
- "@wordpress/components": "^28.8.4",
44
+ "@wordpress/commands": "^1.8.5",
45
+ "@wordpress/components": "^28.8.5",
46
46
  "@wordpress/compose": "^7.8.3",
47
47
  "@wordpress/data": "^10.8.3",
48
48
  "@wordpress/date": "^5.8.2",
@@ -58,7 +58,7 @@
58
58
  "@wordpress/keyboard-shortcuts": "^5.8.3",
59
59
  "@wordpress/keycodes": "^4.8.2",
60
60
  "@wordpress/notices": "^5.8.3",
61
- "@wordpress/preferences": "^4.8.4",
61
+ "@wordpress/preferences": "^4.8.5",
62
62
  "@wordpress/private-apis": "^1.8.1",
63
63
  "@wordpress/rich-text": "^7.8.3",
64
64
  "@wordpress/style-engine": "^2.8.1",
@@ -88,5 +88,5 @@
88
88
  "publishConfig": {
89
89
  "access": "public"
90
90
  },
91
- "gitHead": "07c75154341d1e5a1b8aaa1c226029b6666a52a9"
91
+ "gitHead": "21b3c2e9abda74edab42455041edc6e82fccc388"
92
92
  }
@@ -49,4 +49,6 @@
49
49
 
50
50
  .block-editor-block-inspector__tab-item {
51
51
  flex: 1 1 0px;
52
+ display: flex;
53
+ justify-content: center;
52
54
  }
@@ -283,6 +283,11 @@
283
283
  background: none;
284
284
  border: none;
285
285
  }
286
+
287
+ // Make the spacing consistent between controls.
288
+ .zoom-out-toolbar-button {
289
+ height: $button-size-next-default-40px;
290
+ }
286
291
  }
287
292
 
288
293
  .block-editor-block-tools__zoom-out-mode-inserter-button {
@@ -64,8 +64,7 @@ function BlockVariationPicker( {
64
64
  { allowSkip && (
65
65
  <div className="block-editor-block-variation-picker__skip">
66
66
  <Button
67
- // TODO: Switch to `true` (40px size) if possible
68
- __next40pxDefaultSize={ false }
67
+ __next40pxDefaultSize
69
68
  variant="link"
70
69
  onClick={ () => onSelect() }
71
70
  >
@@ -36,8 +36,8 @@ function VariationsButtons( {
36
36
  </VisuallyHidden>
37
37
  { variations.map( ( variation ) => (
38
38
  <Button
39
- // TODO: Switch to `true` (40px size) if possible
40
- __next40pxDefaultSize={ false }
39
+ __next40pxDefaultSize
40
+ size="compact"
41
41
  key={ variation.name }
42
42
  icon={ <BlockIcon icon={ variation.icon } showColors /> }
43
43
  isPressed={ selectedValue === variation.name }
@@ -8,11 +8,6 @@
8
8
  color: $gray-900;
9
9
  box-shadow: inset 0 0 0 $border-width $gray-900;
10
10
 
11
- // Needs specificity to override button styles.
12
- &.components-button.components-button {
13
- padding: $grid-unit-15;
14
- }
15
-
16
11
  .is-dark-theme & {
17
12
  color: $light-gray-placeholder;
18
13
  box-shadow: inset 0 0 0 $border-width $light-gray-placeholder;
@@ -60,8 +60,7 @@ function ButtonBlockAppender(
60
60
 
61
61
  return (
62
62
  <Button
63
- // TODO: Switch to `true` (40px size) if possible
64
- __next40pxDefaultSize={ false }
63
+ __next40pxDefaultSize
65
64
  ref={ mergedInserterButtonRef }
66
65
  onFocus={ onFocus }
67
66
  tabIndex={ tabIndex }
@@ -88,11 +88,7 @@ const renderToggle =
88
88
  };
89
89
 
90
90
  return (
91
- <Button
92
- // TODO: Switch to `true` (40px size) if possible
93
- __next40pxDefaultSize={ false }
94
- { ...toggleProps }
95
- >
91
+ <Button __next40pxDefaultSize { ...toggleProps }>
96
92
  <LabeledColorIndicator
97
93
  colorValue={ colorValue }
98
94
  label={ label }
@@ -239,11 +239,7 @@ function ColorPanelDropdown( {
239
239
  };
240
240
 
241
241
  return (
242
- <Button
243
- // TODO: Switch to `true` (40px size) if possible
244
- __next40pxDefaultSize={ false }
245
- { ...toggleProps }
246
- >
242
+ <Button __next40pxDefaultSize { ...toggleProps }>
247
243
  <LabeledColorIndicators
248
244
  indicators={ indicators }
249
245
  label={ label }
@@ -190,8 +190,7 @@ export default function FiltersPanel( {
190
190
  return (
191
191
  <ItemGroup isBordered isSeparated>
192
192
  <Button
193
- // TODO: Switch to `true` (40px size) if possible
194
- __next40pxDefaultSize={ false }
193
+ __next40pxDefaultSize
195
194
  { ...toggleProps }
196
195
  >
197
196
  <LabeledColorIndicator
@@ -11,6 +11,7 @@ import {
11
11
  FlexItem,
12
12
  Dropdown,
13
13
  Composite,
14
+ Tooltip,
14
15
  } from '@wordpress/components';
15
16
  import { useMemo } from '@wordpress/element';
16
17
  import { shadow as shadowIcon, Icon, check } from '@wordpress/icons';
@@ -42,8 +43,7 @@ export function ShadowPopoverContainer( { shadow, onShadowChange, settings } ) {
42
43
  />
43
44
  <div className="block-editor-global-styles__clear-shadow">
44
45
  <Button
45
- // TODO: Switch to `true` (40px size) if possible
46
- __next40pxDefaultSize={ false }
46
+ __next40pxDefaultSize
47
47
  variant="tertiary"
48
48
  onClick={ () => onShadowChange( undefined ) }
49
49
  >
@@ -80,32 +80,31 @@ export function ShadowPresets( { presets, activeShadow, onSelect } ) {
80
80
 
81
81
  export function ShadowIndicator( { type, label, isActive, onSelect, shadow } ) {
82
82
  return (
83
- <Composite.Item
84
- role="option"
85
- aria-label={ label }
86
- aria-selected={ isActive }
87
- className={ clsx( 'block-editor-global-styles__shadow__item', {
88
- 'is-active': isActive,
89
- } ) }
90
- render={
91
- <Button
92
- // TODO: Switch to `true` (40px size) if possible
93
- __next40pxDefaultSize={ false }
94
- className={ clsx(
95
- 'block-editor-global-styles__shadow-indicator',
96
- {
97
- unset: type === 'unset',
98
- }
99
- ) }
100
- onClick={ onSelect }
101
- label={ label }
102
- style={ { boxShadow: shadow } }
103
- showTooltip
104
- >
105
- { isActive && <Icon icon={ check } /> }
106
- </Button>
107
- }
108
- />
83
+ <Tooltip text={ label }>
84
+ <Composite.Item
85
+ role="option"
86
+ aria-label={ label }
87
+ aria-selected={ isActive }
88
+ className={ clsx( 'block-editor-global-styles__shadow__item', {
89
+ 'is-active': isActive,
90
+ } ) }
91
+ render={
92
+ <button
93
+ className={ clsx(
94
+ 'block-editor-global-styles__shadow-indicator',
95
+ {
96
+ unset: type === 'unset',
97
+ }
98
+ ) }
99
+ onClick={ onSelect }
100
+ style={ { boxShadow: shadow } }
101
+ aria-label={ label }
102
+ >
103
+ { isActive && <Icon icon={ check } /> }
104
+ </button>
105
+ }
106
+ />
107
+ </Tooltip>
109
108
  );
110
109
  }
111
110
 
@@ -143,11 +142,7 @@ function renderShadowToggle() {
143
142
  };
144
143
 
145
144
  return (
146
- <Button
147
- // TODO: Switch to `true` (40px size) if possible
148
- __next40pxDefaultSize={ false }
149
- { ...toggleProps }
150
- >
145
+ <Button __next40pxDefaultSize { ...toggleProps }>
151
146
  <HStack justify="flex-start">
152
147
  <Icon
153
148
  className="block-editor-global-styles__toggle-icon"
@@ -37,10 +37,15 @@
37
37
 
38
38
  // These styles are similar to the color palette.
39
39
  .block-editor-global-styles__shadow-indicator {
40
+ appearance: none;
41
+ background: none;
40
42
  color: $gray-800;
41
43
  border: $gray-200 $border-width solid;
42
44
  border-radius: $radius-small;
43
45
  cursor: pointer;
46
+ display: inline-flex;
47
+ align-items: center;
48
+
44
49
  padding: 0;
45
50
 
46
51
  height: $button-size-small + 2 * $border-width;
@@ -2,7 +2,8 @@
2
2
  * WordPress dependencies
3
3
  */
4
4
  import {
5
- Button,
5
+ Icon,
6
+ Tooltip,
6
7
  privateApis as componentsPrivateApis,
7
8
  } from '@wordpress/components';
8
9
  import { store as preferencesStore } from '@wordpress/preferences';
@@ -43,27 +44,27 @@ export default function InspectorControlsTabs( {
43
44
  <div className="block-editor-block-inspector__tabs">
44
45
  <Tabs defaultTabId={ initialTabName } key={ clientId }>
45
46
  <Tabs.TabList>
46
- { tabs.map( ( tab ) => (
47
- <Tabs.Tab
48
- key={ tab.name }
49
- tabId={ tab.name }
50
- render={
51
- <Button
52
- // TODO: Switch to `true` (40px size) if possible
53
- __next40pxDefaultSize={ false }
54
- icon={
55
- ! showIconLabels ? tab.icon : undefined
56
- }
57
- label={
58
- ! showIconLabels ? tab.title : undefined
59
- }
47
+ { tabs.map( ( tab ) =>
48
+ showIconLabels ? (
49
+ <Tabs.Tab
50
+ key={ tab.name }
51
+ tabId={ tab.name }
52
+ className={ tab.className }
53
+ >
54
+ { tab.title }
55
+ </Tabs.Tab>
56
+ ) : (
57
+ <Tooltip text={ tab.title } key={ tab.name }>
58
+ <Tabs.Tab
59
+ tabId={ tab.name }
60
60
  className={ tab.className }
61
+ aria-label={ tab.title }
61
62
  >
62
- { showIconLabels && tab.title }
63
- </Button>
64
- }
65
- />
66
- ) ) }
63
+ <Icon icon={ tab.icon } />
64
+ </Tabs.Tab>
65
+ </Tooltip>
66
+ )
67
+ ) }
67
68
  </Tabs.TabList>
68
69
  <Tabs.TabPanel tabId={ TAB_SETTINGS.name } focusable={ false }>
69
70
  <SettingsTab showAdvancedControls={ !! blockName } />
@@ -31,8 +31,7 @@ export default function InspectorPopoverHeader( {
31
31
  <Spacer />
32
32
  { actions.map( ( { label, icon, onClick } ) => (
33
33
  <Button
34
- // TODO: Switch to `true` (40px size) if possible
35
- __next40pxDefaultSize={ false }
34
+ size="small"
36
35
  key={ label }
37
36
  className="block-editor-inspector-popover-header__action"
38
37
  label={ label }
@@ -45,8 +44,7 @@ export default function InspectorPopoverHeader( {
45
44
  ) ) }
46
45
  { onClose && (
47
46
  <Button
48
- // TODO: Switch to `true` (40px size) if possible
49
- __next40pxDefaultSize={ false }
47
+ size="small"
50
48
  className="block-editor-inspector-popover-header__action"
51
49
  label={ __( 'Close' ) }
52
50
  icon={ closeSmall }
@@ -1,16 +1,3 @@
1
1
  .block-editor-inspector-popover-header {
2
2
  margin-bottom: $grid-unit-20;
3
3
  }
4
-
5
- [class].block-editor-inspector-popover-header__action {
6
- height: $icon-size;
7
-
8
- &.has-icon {
9
- min-width: $icon-size;
10
- padding: 0;
11
- }
12
-
13
- &:not(.has-icon) {
14
- text-decoration: underline;
15
- }
16
- }
@@ -475,16 +475,14 @@ function LinkControl( {
475
475
  className="block-editor-link-control__search-actions"
476
476
  >
477
477
  <Button
478
- // TODO: Switch to `true` (40px size) if possible
479
- __next40pxDefaultSize={ false }
478
+ __next40pxDefaultSize
480
479
  variant="tertiary"
481
480
  onClick={ handleCancel }
482
481
  >
483
482
  { __( 'Cancel' ) }
484
483
  </Button>
485
484
  <Button
486
- // TODO: Switch to `true` (40px size) if possible
487
- __next40pxDefaultSize={ false }
485
+ __next40pxDefaultSize
488
486
  variant="primary"
489
487
  onClick={ isDisabled ? noop : handleSubmit }
490
488
  className="block-editor-link-control__search-submit"
@@ -25,8 +25,7 @@ function LinkSettingsDrawer( { children, settingsOpen, setSettingsOpen } ) {
25
25
  return (
26
26
  <>
27
27
  <Button
28
- // TODO: Switch to `true` (40px size) if possible
29
- __next40pxDefaultSize={ false }
28
+ __next40pxDefaultSize
30
29
  className="block-editor-link-control__drawer-toggle"
31
30
  aria-expanded={ settingsOpen }
32
31
  onClick={ () => setSettingsOpen( ! settingsOpen ) }
@@ -7,7 +7,6 @@ import clsx from 'clsx';
7
7
  * WordPress dependencies
8
8
  */
9
9
  import {
10
- Button,
11
10
  __experimentalHStack as HStack,
12
11
  __experimentalTruncate as Truncate,
13
12
  } from '@wordpress/components';
@@ -82,9 +81,7 @@ function ListViewBlockSelectButton(
82
81
  }
83
82
 
84
83
  return (
85
- <Button
86
- // TODO: Switch to `true` (40px size) if possible
87
- __next40pxDefaultSize={ false }
84
+ <a
88
85
  className={ clsx(
89
86
  'block-editor-list-view-block-select-button',
90
87
  className
@@ -156,7 +153,7 @@ function ListViewBlockSelectButton(
156
153
  </span>
157
154
  ) }
158
155
  </HStack>
159
- </Button>
156
+ </a>
160
157
  );
161
158
  }
162
159
 
@@ -216,6 +216,15 @@
216
216
  text-align: left;
217
217
  position: relative;
218
218
  white-space: nowrap;
219
+ border-radius: 2px;
220
+ box-sizing: border-box;
221
+ color: inherit;
222
+ font-family: inherit;
223
+ font-size: 13px;
224
+ font-weight: 400;
225
+ margin: 0;
226
+ text-decoration: none;
227
+ transition: box-shadow 0.1s linear;
219
228
 
220
229
  &.is-dropping-before::before {
221
230
  content: "";
@@ -91,8 +91,7 @@ const URLSelectionUI = ( { src, onChangeSrc, onSelectURL } ) => {
91
91
  return (
92
92
  <div className="block-editor-media-placeholder__url-input-container">
93
93
  <Button
94
- // TODO: Switch to `true` (40px size) if possible
95
- __next40pxDefaultSize={ false }
94
+ __next40pxDefaultSize
96
95
  className="block-editor-media-placeholder__button"
97
96
  onClick={ openURLInput }
98
97
  isPressed={ isURLInputVisible }
@@ -389,8 +388,7 @@ export function MediaPlaceholder( {
389
388
  return (
390
389
  onCancel && (
391
390
  <Button
392
- // TODO: Switch to `true` (40px size) if possible
393
- __next40pxDefaultSize={ false }
391
+ __next40pxDefaultSize
394
392
  className="block-editor-media-placeholder__cancel-button"
395
393
  title={ __( 'Cancel' ) }
396
394
  variant="link"
@@ -419,8 +417,7 @@ export function MediaPlaceholder( {
419
417
  onToggleFeaturedImage && (
420
418
  <div className="block-editor-media-placeholder__url-input-container">
421
419
  <Button
422
- // TODO: Switch to `true` (40px size) if possible
423
- __next40pxDefaultSize={ false }
420
+ __next40pxDefaultSize
424
421
  className="block-editor-media-placeholder__button"
425
422
  onClick={ onToggleFeaturedImage }
426
423
  variant="secondary"
@@ -436,8 +433,7 @@ export function MediaPlaceholder( {
436
433
  const defaultButton = ( { open } ) => {
437
434
  return (
438
435
  <Button
439
- // TODO: Switch to `true` (40px size) if possible
440
- __next40pxDefaultSize={ false }
436
+ __next40pxDefaultSize
441
437
  variant="secondary"
442
438
  onClick={ () => {
443
439
  open();
@@ -477,8 +473,7 @@ export function MediaPlaceholder( {
477
473
  const content = (
478
474
  <>
479
475
  <Button
480
- // TODO: Switch to `true` (40px size) if possible
481
- __next40pxDefaultSize={ false }
476
+ __next40pxDefaultSize
482
477
  variant="primary"
483
478
  className={ clsx(
484
479
  'block-editor-media-placeholder__button',
@@ -508,8 +503,7 @@ export function MediaPlaceholder( {
508
503
  <FormFileUpload
509
504
  render={ ( { openFileDialog } ) => (
510
505
  <Button
511
- // TODO: Switch to `true` (40px size) if possible
512
- __next40pxDefaultSize={ false }
506
+ __next40pxDefaultSize
513
507
  onClick={ openFileDialog }
514
508
  variant="primary"
515
509
  className={ clsx(
@@ -28,8 +28,7 @@ export default function SkipToSelectedBlock() {
28
28
 
29
29
  return selectedBlockClientId ? (
30
30
  <Button
31
- // TODO: Switch to `true` (40px size) if possible
32
- __next40pxDefaultSize={ false }
31
+ __next40pxDefaultSize
33
32
  variant="secondary"
34
33
  className="block-editor-skip-to-selected-block"
35
34
  onClick={ onClick }
@@ -3,18 +3,9 @@
3
3
  top: -9999em;
4
4
 
5
5
  &:focus {
6
- height: auto;
7
- width: auto;
8
- display: block;
9
6
  font-size: 14px;
10
7
  font-weight: 600;
11
- padding: 15px 23px 14px;
12
8
  background: #f1f1f1;
13
- color: var(--wp-admin-theme-color);
14
- line-height: normal;
15
- box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
16
- text-decoration: none;
17
- outline: none;
18
9
  z-index: z-index(".skip-to-selected-block");
19
10
  }
20
11
  }
@@ -44,8 +44,7 @@ function ToolSelector( props, ref ) {
44
44
  <Dropdown
45
45
  renderToggle={ ( { isOpen, onToggle } ) => (
46
46
  <Button
47
- // TODO: Switch to `true` (40px size) if possible
48
- __next40pxDefaultSize={ false }
47
+ size="compact"
49
48
  { ...props }
50
49
  ref={ ref }
51
50
  icon={ mode === 'navigation' ? selectIcon : editIcon }
@@ -3,7 +3,10 @@
3
3
  */
4
4
  import { __ } from '@wordpress/i18n';
5
5
  import { Component } from '@wordpress/element';
6
- import { Button } from '@wordpress/components';
6
+ import {
7
+ Button,
8
+ __experimentalInputControlSuffixWrapper as InputControlSuffixWrapper,
9
+ } from '@wordpress/components';
7
10
  import { link, keyboardReturn, arrowLeft } from '@wordpress/icons';
8
11
 
9
12
  /**
@@ -38,8 +41,7 @@ class URLInputButton extends Component {
38
41
  return (
39
42
  <div className="block-editor-url-input__button">
40
43
  <Button
41
- // TODO: Switch to `true` (40px size) if possible
42
- __next40pxDefaultSize={ false }
44
+ size="compact"
43
45
  icon={ link }
44
46
  label={ buttonLabel }
45
47
  onClick={ this.toggle }
@@ -53,8 +55,7 @@ class URLInputButton extends Component {
53
55
  >
54
56
  <div className="block-editor-url-input__button-modal-line">
55
57
  <Button
56
- // TODO: Switch to `true` (40px size) if possible
57
- __next40pxDefaultSize={ false }
58
+ __next40pxDefaultSize
58
59
  className="block-editor-url-input__back"
59
60
  icon={ arrowLeft }
60
61
  label={ __( 'Close' ) }
@@ -63,13 +64,16 @@ class URLInputButton extends Component {
63
64
  <URLInput
64
65
  value={ url || '' }
65
66
  onChange={ onChange }
66
- />
67
- <Button
68
- // TODO: Switch to `true` (40px size) if possible
69
- __next40pxDefaultSize={ false }
70
- icon={ keyboardReturn }
71
- label={ __( 'Submit' ) }
72
- type="submit"
67
+ suffix={
68
+ <InputControlSuffixWrapper variant="control">
69
+ <Button
70
+ size="small"
71
+ icon={ keyboardReturn }
72
+ label={ __( 'Submit' ) }
73
+ type="submit"
74
+ />
75
+ </InputControlSuffixWrapper>
76
+ }
73
77
  />
74
78
  </div>
75
79
  </form>