Skip to content

Commit

Permalink
Use new gridColumn prop for single column controls
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Oct 15, 2021
1 parent 185949d commit 562ad1f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/components/src/tools-panel/stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const _default = () => {
resetAll={ resetAll }
>
<ToolsPanelItem
className="single-column"
gridColumn="span 1"
hasValue={ () => !! width }
label="Width"
onDeselect={ () => setWidth( undefined ) }
Expand All @@ -53,7 +53,7 @@ export const _default = () => {
/>
</ToolsPanelItem>
<ToolsPanelItem
className="single-column"
gridColumn="span 1"
hasValue={ () => !! height }
label="Height"
onDeselect={ () => setHeight( undefined ) }
Expand Down Expand Up @@ -100,7 +100,7 @@ export const WithOptionalItemsPlusIcon = () => {
resetAll={ resetAll }
>
<ToolsPanelItem
className="single-column"
gridColumn="span 1"
hasValue={ () => !! width }
label="Width"
onDeselect={ () => setWidth( undefined ) }
Expand All @@ -113,7 +113,7 @@ export const WithOptionalItemsPlusIcon = () => {
/>
</ToolsPanelItem>
<ToolsPanelItem
className="single-column"
gridColumn="span 1"
hasValue={ () => !! height }
label="Height"
onDeselect={ () => setHeight( undefined ) }
Expand Down Expand Up @@ -162,7 +162,7 @@ export const WithSlotFillItems = () => {
<SlotFillProvider>
<ToolsPanelItems>
<ToolsPanelItem
className="single-column"
gridColumn="span 1"
hasValue={ () => !! width }
label="Injected Width"
onDeselect={ () => updateAttribute( 'width', undefined ) }
Expand All @@ -178,7 +178,7 @@ export const WithSlotFillItems = () => {
/>
</ToolsPanelItem>
<ToolsPanelItem
className="single-column"
gridColumn="span 1"
hasValue={ () => !! height }
label="Injected Height"
onDeselect={ () => updateAttribute( 'height', undefined ) }
Expand Down

0 comments on commit 562ad1f

Please sign in to comment.