Skip to content

Commit

Permalink
chore(ripple): update docs/demos for Safari flex vs grid
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 561543073
  • Loading branch information
asyncLiz authored and copybara-github committed Aug 31, 2023
1 parent c233caf commit 3906b7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/components/ripple.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ To create an unbounded circular ripple centered on an element, use the following

```css
.container {
display: grid;
display: flex;
place-content: center;
place-items: center;
position: relative;
}
Expand Down Expand Up @@ -182,7 +183,8 @@ md-ripple.unbounded {
width: 32px;
/* Needed for unbounded ripple */
display: grid;
display: flex;
place-content: center;
place-items: center;
position: relative;
}
Expand Down
3 changes: 2 additions & 1 deletion ripple/demo/stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ const ripples: MaterialStoryInit<StoryKnobs> = {
width: 24px;
/* Recommended styles for an unbounded ripple's anchor. */
display: grid;
display: flex;
place-content: center;
place-items: center;
position: relative;
}
Expand Down

0 comments on commit 3906b7f

Please sign in to comment.