Skip to content

Commit

Permalink
[Block Editor] Remove visual clue from text alignment toolbar (#35922)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras authored Oct 25, 2021
1 parent 7ac9959 commit de333f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ exports[`AlignmentUI should allow custom alignment controls to be specified 1`]
}
toggleProps={
Object {
"className": "is-pressed",
"describedBy": "Change text alignment",
}
}
Expand Down Expand Up @@ -134,7 +133,6 @@ exports[`AlignmentUI should match snapshot 1`] = `
}
toggleProps={
Object {
"className": "is-pressed",
"describedBy": "Change text alignment",
}
}
Expand Down
5 changes: 1 addition & 4 deletions packages/block-editor/src/components/alignment-control/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ function AlignmentUI( {
<UIComponent
icon={ setIcon() }
label={ label }
toggleProps={ {
describedBy,
className: activeAlignment ? 'is-pressed' : undefined,
} }
toggleProps={ { describedBy } }
popoverProps={ POPOVER_PROPS }
controls={ alignmentControls.map( ( control ) => {
const { align } = control;
Expand Down

0 comments on commit de333f5

Please sign in to comment.