Skip to content

Commit

Permalink
Clean up unnecessary toggle classes
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed May 16, 2023
1 parent b065e69 commit a294233
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/**
* External dependencies
*/
import classnames from 'classnames';

/**
* WordPress dependencies
*/
Expand Down Expand Up @@ -171,7 +166,7 @@ export default function SpacingInputControl( {
} ) );

const ariaLabel = sprintf(
// translators: 1: The side of the block being modified (top, bottom, left, etc.). 2. Type of spacing being modified (Padding, margin, etc)
// translators: 1: The side of the block being modified (top, bottom, left, All sides etc.). 2. Type of spacing being modified (Padding, margin, etc)
__( '%1$s %2$s' ),
LABELS[ side ],
type?.toLowerCase()
Expand Down Expand Up @@ -294,12 +289,7 @@ export default function SpacingInputControl( {
} }
isPressed={ showCustomValueControl }
isSmall
className={ classnames( {
'components-spacing-sizes-control__custom-toggle-all':
side === 'all',
'components-spacing-sizes-control__custom-toggle-single':
side !== 'all',
} ) }
className="components-spacing-sizes-control__custom-toggle"
iconSize={ 24 }
/>
) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
}

.components-spacing-sizes-control__icon,
.components-spacing-sizes-control__custom-toggle-all,
.components-spacing-sizes-control__custom-toggle-single {
.components-spacing-sizes-control__custom-toggle {
flex: 0 0 auto;
}

0 comments on commit a294233

Please sign in to comment.