Skip to content

Commit

Permalink
Fix alignment toolbars.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed May 25, 2020
1 parent 8488f8e commit 5b1668c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ const DEFAULT_CONTROLS = [ 'left', 'center', 'right', 'wide', 'full' ];
const DEFAULT_CONTROL = 'center';
const WIDE_CONTROLS = [ 'wide', 'full' ];

const POPOVER_PROPS = {
isAlternate: true,
};

export function BlockAlignmentToolbar( {
value,
onChange,
Expand All @@ -68,6 +72,7 @@ export function BlockAlignmentToolbar( {

return (
<ToolbarGroup
popoverProps={ POPOVER_PROPS }
isCollapsed={ isCollapsed }
icon={
activeAlignmentControl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ const BLOCK_ALIGNMENTS_CONTROLS = {
const DEFAULT_CONTROLS = [ 'top', 'center', 'bottom' ];
const DEFAULT_CONTROL = 'top';

const POPOVER_PROPS = {
isAlternate: true,
};

export function BlockVerticalAlignmentToolbar( {
value,
onChange,
Expand All @@ -49,6 +53,7 @@ export function BlockVerticalAlignmentToolbar( {

return (
<ToolbarGroup
popoverProps={ POPOVER_PROPS }
isCollapsed={ isCollapsed }
icon={
activeAlignment
Expand Down

0 comments on commit 5b1668c

Please sign in to comment.