Skip to content

Commit

Permalink
Command Center: Fix a style glitch on Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Apr 27, 2023
1 parent e8ec1ce commit 426af33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/commands/src/components/command-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,11 @@ export function CommandMenu() {
onRequestClose={ close }
__experimentalHideHeader
>
<div className="commands-command-menu__container">
{ /* the style here is a hack to force safari to repaint to avoid a style glitch */ }
<div
className="commands-command-menu__container"
style={ { transform: 'translateZ(0)' } }
>
<Command label={ __( 'Global Command Menu' ) }>
<div className="commands-command-menu__header">
<Command.Input
Expand Down

0 comments on commit 426af33

Please sign in to comment.