Skip to content

Commit 8428868

Browse files
crisbetoandrewseguin
authored andcommitted
chore: fix z-index on drag-drop demos and button width on tooltip demo (#13515)
* Fixes the free-dragging example in the docs site going under other UI elements if they're dragged too far. * Fixes one of the buttons on the tooltip demo being uneven. Fixes #13510.
1 parent 9085de7 commit 8428868

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

src/material-examples/cdk-drag-drop-axis-lock/cdk-drag-drop-axis-lock-example.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
background: #fff;
1212
border-radius: 4px;
1313
margin-right: 25px;
14+
position: relative;
15+
z-index: 1;
1416
transition: box-shadow 200ms cubic-bezier(0, 0, 0.2, 1);
1517
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
1618
0 2px 2px 0 rgba(0, 0, 0, 0.14),

src/material-examples/cdk-drag-drop-handle/cdk-drag-drop-handle-example.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
background: #fff;
1313
border-radius: 4px;
1414
position: relative;
15+
z-index: 1;
1516
transition: box-shadow 200ms cubic-bezier(0, 0, 0.2, 1);
1617
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
1718
0 2px 2px 0 rgba(0, 0, 0, 0.14),

src/material-examples/cdk-drag-drop-overview/cdk-drag-drop-overview-example.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
text-align: center;
1111
background: #fff;
1212
border-radius: 4px;
13+
position: relative;
14+
z-index: 1;
1315
transition: box-shadow 200ms cubic-bezier(0, 0, 0.2, 1);
1416
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
1517
0 2px 2px 0 rgba(0, 0, 0, 0.14),

src/material-examples/tooltip-auto-hide/tooltip-auto-hide-example.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.example-button {
22
display: block;
3-
width: 48px;
43
margin: 80px auto 400px;
54
}
65

0 commit comments

Comments
 (0)