Skip to content

docs(cdk/drag-drop): ensure that examples look good on adev #31673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
position: relative;
z-index: 1;
transition: box-shadow 200ms cubic-bezier(0, 0, 0.2, 1);
font-family: sans-serif;
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
0 2px 2px 0 rgba(0, 0, 0, 0.14),
0 1px 5px 0 rgba(0, 0, 0, 0.12);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
box-sizing: border-box;
padding: 10px;
transition: box-shadow 200ms cubic-bezier(0, 0, 0.2, 1);
font-family: sans-serif;
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
0 2px 2px 0 rgba(0, 0, 0, 0.14),
0 1px 5px 0 rgba(0, 0, 0, 0.12);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
margin: 0 25px 25px 0;
display: inline-block;
vertical-align: top;
font-family: sans-serif;
}

.example-list {
Expand All @@ -27,6 +28,7 @@
cursor: move;
background: white;
font-size: 14px;
font-family: sans-serif;
}

.cdk-drag-preview {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
margin: 0 25px 25px 0;
display: inline-block;
vertical-align: top;
font-family: sans-serif;
}

.example-list {
Expand All @@ -27,6 +28,7 @@
cursor: move;
background: white;
font-size: 14px;
font-family: sans-serif;
}

.cdk-drag-preview {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
margin: 0 25px 25px 0;
display: inline-block;
vertical-align: top;
font-family: sans-serif;
}

.example-list {
Expand All @@ -27,6 +28,7 @@
cursor: move;
background: white;
font-size: 14px;
font-family: sans-serif;
}

.cdk-drag-preview {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
background: white;
border-radius: 4px;
overflow: hidden;
font-family: sans-serif;
}

.example-box {
Expand All @@ -21,6 +22,7 @@
cursor: move;
background: white;
font-size: 14px;
font-family: sans-serif;
}

.cdk-drag-preview {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
background: white;
border-radius: 4px;
overflow: hidden;
font-family: sans-serif;
}

.example-box {
Expand All @@ -21,6 +22,7 @@
cursor: move;
background: white;
font-size: 14px;
font-family: sans-serif;
}

.cdk-drag-preview {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
border-radius: 4px;
position: relative;
z-index: 1;
font-family: sans-serif;
transition: box-shadow 200ms cubic-bezier(0, 0, 0.2, 1);
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
0 2px 2px 0 rgba(0, 0, 0, 0.14),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
margin: 0 25px 25px 0;
display: inline-block;
vertical-align: top;
font-family: sans-serif;
}

.example-list {
Expand All @@ -27,6 +28,7 @@
cursor: move;
background: white;
font-size: 14px;
font-family: sans-serif;
}

.cdk-drag-preview {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
background: white;
border-radius: 4px;
overflow: hidden;
font-family: sans-serif;
}

.example-box {
Expand All @@ -21,6 +22,7 @@
cursor: move;
background: white;
font-size: 14px;
font-family: sans-serif;
}

.example-box.cdk-drag-disabled {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
margin: 0 25px 25px 0;
display: inline-block;
vertical-align: top;
font-family: sans-serif;
}

.example-list {
Expand All @@ -27,6 +28,7 @@
cursor: move;
background: white;
font-size: 14px;
font-family: sans-serif;
}

.cdk-drag-preview {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
border-radius: 4px;
position: relative;
z-index: 1;
font-family: sans-serif;
transition: box-shadow 200ms cubic-bezier(0, 0, 0.2, 1);
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
0 2px 2px 0 rgba(0, 0, 0, 0.14),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
border-radius: 4px;
position: relative;
z-index: 1;
font-family: sans-serif;
transition: box-shadow 200ms cubic-bezier(0, 0, 0.2, 1);
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
0 2px 2px 0 rgba(0, 0, 0, 0.14),
Expand All @@ -29,8 +30,11 @@
position: absolute;
top: 10px;
right: 10px;
color: #ccc;
cursor: move;
width: 24px;
height: 24px;
}

.example-handle svg {
color: #ccc;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
I can only be dragged using the handle

<div class="example-handle" cdkDragHandle>
<svg width="24px" fill="currentColor" viewBox="0 0 24 24">
<svg width="24px" viewBox="0 0 24 24">
<path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"></path>
<path d="M0 0h24v24H0z" fill="none"></path>
</svg>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
background: white;
border-radius: 4px;
overflow: hidden;
font-family: sans-serif;
}

.example-box {
Expand All @@ -24,6 +25,7 @@
font-size: 14px;
flex-grow: 1;
flex-basis: 0;
font-family: sans-serif;
}

.cdk-drag-preview {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
min-height: 60px;
border-radius: 4px;
overflow: hidden;
font-family: sans-serif;
}

.example-box {
Expand All @@ -23,6 +24,7 @@
text-align: center;
font-size: 14px;
min-width: 115px;
font-family: sans-serif;
}

.cdk-drag-preview {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
position: relative;
z-index: 1;
transition: box-shadow 200ms cubic-bezier(0, 0, 0.2, 1);
font-family: sans-serif;
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
0 2px 2px 0 rgba(0, 0, 0, 0.14),
0 1px 5px 0 rgba(0, 0, 0, 0.12);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
background: #fff;
border-radius: 4px;
transition: box-shadow 200ms cubic-bezier(0, 0, 0.2, 1);
font-family: sans-serif;
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
0 2px 2px 0 rgba(0, 0, 0, 0.14),
0 1px 5px 0 rgba(0, 0, 0, 0.12);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
background: white;
border-radius: 4px;
overflow: hidden;
font-family: sans-serif;
}

.example-box {
Expand All @@ -26,6 +27,7 @@
cursor: move;
background: white;
font-size: 14px;
font-family: sans-serif;
}

.cdk-drag-preview {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
display: block;
width: 400px;
max-width: 100%;
font-family: sans-serif;
}

.example-box {
Expand All @@ -21,6 +22,7 @@
cursor: move;
background: white;
font-size: 14px;
font-family: sans-serif;
}

.cdk-drag-preview {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
background: white;
border-radius: 4px;
overflow: hidden;
font-family: sans-serif;
}

.example-box {
Expand All @@ -21,6 +22,7 @@
cursor: move;
background: white;
font-size: 14px;
font-family: sans-serif;
}

.cdk-drag-preview {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
table {
width: 100%;
font-family: sans-serif;
}

.example-drag-cursor {
Expand Down
Loading