Skip to content

Commit

Permalink
Rename styles to be clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsherman committed May 24, 2024
1 parent 122a455 commit babdbfd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions packages/block-editor/src/components/inserter/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,17 @@ $block-inserter-tabs-height: 44px;
flex-direction: column;
overflow: hidden;

.block-editor-inserter-sidebar__header {
.block-editor-inserter__tablist-and-close {
border-bottom: $border-width solid $gray-300;
padding-right: $grid-unit-10;
display: flex;
justify-content: space-between;
}

.block-editor-inserter-sidebar__close-button {
/* stylelint-disable-next-line property-disallowed-list -- This should be refactored to avoid order if possible */
order: 1;
align-self: center;
}
.block-editor-inserter__close-button {
/* stylelint-disable-next-line property-disallowed-list -- This should be refactored to avoid order if possible */
order: 1;
align-self: center;
}

.block-editor-inserter__tablist {
Expand Down
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/inserter/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ function InserterTabs( { onSelect, children, onClose, selectedTab }, ref ) {
return (
<div className="block-editor-inserter__tabs" ref={ ref }>
<Tabs onSelect={ onSelect } selectedTabId={ selectedTab }>
<div className="block-editor-inserter-sidebar__header">
<div className="block-editor-inserter__tablist-and-close">
<Button
className="block-editor-inserter-sidebar__close-button"
className="block-editor-inserter__close-button"
icon={ closeSmall }
label={ __( 'Close block inserter' ) }
onClick={ () => onClose() }
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-widgets/src/components/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// Leave space for the close button
height: calc(100% - #{$button-size} - #{$grid-unit-10});

.block-editor-inserter-sidebar__header {
.block-editor-inserter__tablist-and-close {
display: none;
}

Expand Down

0 comments on commit babdbfd

Please sign in to comment.