Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@

.components-popover__content {
width: 300px;
border: $border-width solid $gray-900;
background: $white;
border-radius: $radius-medium;
outline: none;
box-shadow: none;
overflow: auto;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export default function BlockToolbarPopover( {
__experimentalOnIndexChange={ ( index ) => {
initialToolbarItemIndexRef.current = index;
} }
variant="toolbar"
/>
</PrivateBlockPopover>
)
Expand Down
14 changes: 5 additions & 9 deletions packages/block-editor/src/components/block-tools/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@
pointer-events: all;
margin-top: $grid-unit-10;
margin-bottom: $grid-unit-10;
border: $border-width solid $gray-900;
border: $border-width solid $gray-300;
border-radius: $radius-small;
box-shadow: $elevation-x-small;
overflow: visible; // allow the parent selector to be visible
position: static;
width: auto;
Expand All @@ -133,11 +134,6 @@
overflow: visible;
}

.block-editor-block-toolbar .components-toolbar-group,
.block-editor-block-toolbar .components-toolbar {
border-right-color: $gray-900;
}

// Hide the block toolbar if the insertion point is shown.
&.is-insertion-point-visible {
visibility: hidden;
Expand All @@ -164,7 +160,7 @@
// detached position and the full border are its own.
&:has(.block-editor-block-parent-selector__inserter) {
left: calc(-#{$grid-unit-60} - #{$grid-unit-30} - #{$grid-unit-15} - #{$grid-unit-10} - 3 * #{$border-width});
border: $border-width solid $gray-900;
border: $border-width solid $gray-300;
border-radius: $radius-small;
// The box paints the background, like the toolbar box does for
// its groups.
Expand Down Expand Up @@ -253,7 +249,7 @@
}

.block-editor-block-parent-selector__button {
border: $border-width solid $gray-900;
border: $border-width solid $gray-300;
padding-right: 6px;
padding-left: 6px;
background-color: $white;
Expand All @@ -276,7 +272,7 @@

.block-editor-block-mover__move-button-container,
.block-editor-block-toolbar__block-controls .block-editor-block-mover {
border-left: 1px solid $gray-900;
border-left: 1px solid $gray-300;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ const URLPopover = forwardRef(
focusOnMount={ focusOnMount }
placement={ computedPlacement }
shift
variant="toolbar"
{ ...popoverProps }
>
<div className="block-editor-url-popover__input-container">
Expand Down
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/url-popover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@use "@wordpress/base-styles/colors" as *;

.block-editor-url-popover__additional-controls {
border-top: $border-width solid $gray-900;
border-top: $border-width solid $gray-300;
padding: $grid-unit-10 $grid-unit-10;
}

Expand Down Expand Up @@ -45,7 +45,7 @@
.block-editor-url-popover__settings {
display: block;
padding: $grid-unit-20;
border-top: $border-width solid $gray-900;
border-top: $border-width solid $gray-300;
}

.block-editor-url-popover__link-container-content {
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/audio/edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ function AudioEdit( {
onSelectURL={ onSelectURL }
onError={ onUploadError }
onReset={ () => onSelectAudio( undefined ) }
variant="toolbar"
/>
</BlockControls>
) }
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/cover/edit/block-controls.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ export default function CoverBlockControls( {
useFeaturedImage={ useFeaturedImage }
name={ ! url ? __( 'Add media' ) : __( 'Replace' ) }
onReset={ onClearMedia }
variant="toolbar"
>
{ ( { onClose } ) =>
hasAllowedVideoProviders ? (
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/gallery/edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,6 @@ export default function GalleryEdit( props ) {
.filter( ( image ) => image.id )
.map( ( image ) => image.id ) }
addToGallery={ hasImageIds }
variant="toolbar"
/>
</BlockControls>
) }
Expand Down
3 changes: 0 additions & 3 deletions packages/block-library/src/icon/edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ export function Edit( { attributes, setAttributes } ) {
toggleProps={ {
as: ToolbarButton,
} }
popoverProps={ {
className: 'is-alternate',
} }
text={ __( 'Label' ) }
>
{ () => (
Expand Down
3 changes: 0 additions & 3 deletions packages/block-library/src/image/image.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ function ContentOnlyControls( {
anchor={ popoverAnchor }
onClose={ () => setIsAltDialogOpen( false ) }
offset={ 13 }
variant="toolbar"
>
<div className="wp-block-image__toolbar_content_textarea__container">
<WCTextareaControl
Expand Down Expand Up @@ -224,7 +223,6 @@ function ContentOnlyControls( {
anchor={ popoverAnchor }
onClose={ () => setIsTitleDialogOpen( false ) }
offset={ 13 }
variant="toolbar"
>
<div className="wp-block-image__toolbar_content_textarea__container">
<TextControl
Expand Down Expand Up @@ -889,7 +887,6 @@ export default function Image( {
onError={ onUploadError }
name={ ! url ? __( 'Add image' ) : __( 'Replace' ) }
onReset={ () => onSelectImage( undefined ) }
variant="toolbar"
/>
</BlockControls>
</>
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/playlist-track/edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ const PlaylistTrackEdit = ( {
mediaURL={ src }
allowedTypes={ ALLOWED_MEDIA_TYPES }
onError={ onUploadError }
variant="toolbar"
/>
</BlockControls>
) }
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/site-logo/edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,6 @@ export default function LogoEdit( {
<MediaReplaceFlow
{ ...mediaReplaceFlowProps }
allowedTypes={ ALLOWED_MEDIA_TYPES }
variant="toolbar"
/>
</BlockControls>
);
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/video/edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ function VideoEdit( {
onSelectURL={ onSelectURL }
onError={ onUploadError }
onReset={ () => onSelectVideo( undefined ) }
variant="toolbar"
/>
</BlockControls>
</>
Expand Down
Loading