Skip to content

Commit

Permalink
Pog, IconButton: bugfix for rotated icons on iPhone (#2730)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangerismycat committed Mar 15, 2023
1 parent 7c73528 commit 681447e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/gestalt/src/Pog.css
Expand Up @@ -3,6 +3,10 @@
composes: flex from "./Layout.css";
composes: xsItemsCenter from "./Layout.css";
composes: justifyCenter from "./Layout.css";

/* This fixes a mobile Safari bug (device only) that makes the icon disappear when rotated for RTL support
https://stackoverflow.com/a/28617071/5253702 */
perspective: 1px;
}

.focused {
Expand Down

0 comments on commit 681447e

Please sign in to comment.