e248f32111
* Remove wrapping div of DragDrop and pass props to child * Using EuiHighlight * Basic styles in for all DnD states * Fixing dimension button styles * Fix FieldButton to accept `…rest` props * A few other minor fixes * Fixed horizontal scroll of error message * Quick fix for invalid link
35 lines
810 B
Plaintext
Generated
35 lines
810 B
Plaintext
Generated
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`DragDrop droppable is reflected in the className 1`] = `
|
|
<button
|
|
class="lnsDragDrop lnsDragDrop-isDroppable lnsDragDrop-isDropTarget"
|
|
data-test-subj="lnsDragDrop"
|
|
>
|
|
Hello!
|
|
</button>
|
|
`;
|
|
|
|
exports[`DragDrop items that have droppable=false get special styling when another item is dragged 1`] = `
|
|
<button
|
|
className="lnsDragDrop lnsDragDrop-isDroppable lnsDragDrop-isNotDroppable"
|
|
data-test-subj="lnsDragDrop"
|
|
onDragEnd={[Function]}
|
|
onDragLeave={[Function]}
|
|
onDragOver={[Function]}
|
|
onDragStart={[Function]}
|
|
onDrop={[Function]}
|
|
>
|
|
Hello!
|
|
</button>
|
|
`;
|
|
|
|
exports[`DragDrop renders if nothing is being dragged 1`] = `
|
|
<button
|
|
class="lnsDragDrop lnsDragDrop-isDraggable"
|
|
data-test-subj="lnsDragDrop"
|
|
draggable="true"
|
|
>
|
|
Hello!
|
|
</button>
|
|
`;
|