carbon-react 104.33.0 → 104.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -79,6 +79,7 @@ const DraggableContainer = ({
|
|
|
79
79
|
draggableItem,
|
|
80
80
|
index
|
|
81
81
|
} = findItem(id);
|
|
82
|
+
if (!draggableItem) return;
|
|
82
83
|
const copyOfDraggableItems = [...draggableItems];
|
|
83
84
|
copyOfDraggableItems.splice(index, 1);
|
|
84
85
|
copyOfDraggableItems.splice(atIndex, 0, draggableItem);
|
package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js
CHANGED
|
@@ -77,6 +77,7 @@ const FlatTableBodyDraggable = ({
|
|
|
77
77
|
draggableItem,
|
|
78
78
|
index
|
|
79
79
|
} = findItem(id);
|
|
80
|
+
if (!draggableItem) return;
|
|
80
81
|
const copyOfDraggableItems = [...draggableItems];
|
|
81
82
|
copyOfDraggableItems.splice(index, 1);
|
|
82
83
|
copyOfDraggableItems.splice(atIndex, 0, draggableItem);
|
|
@@ -23,7 +23,6 @@ const StyledIconButton = _styledComponents.default.button.attrs({
|
|
|
23
23
|
type: "button"
|
|
24
24
|
})`
|
|
25
25
|
${({
|
|
26
|
-
theme,
|
|
27
26
|
disabled
|
|
28
27
|
}) => (0, _styledComponents.css)`
|
|
29
28
|
${_styledSystem.margin}
|
|
@@ -32,9 +31,8 @@ const StyledIconButton = _styledComponents.default.button.attrs({
|
|
|
32
31
|
padding: 0;
|
|
33
32
|
|
|
34
33
|
&:focus {
|
|
35
|
-
color: ${theme.text.color};
|
|
36
34
|
background-color: transparent;
|
|
37
|
-
outline: solid 3px
|
|
35
|
+
outline: solid 3px var(--colorsSemanticFocus500);
|
|
38
36
|
z-index: 1;
|
|
39
37
|
}
|
|
40
38
|
|
|
@@ -48,7 +46,7 @@ const StyledIconButton = _styledComponents.default.button.attrs({
|
|
|
48
46
|
|
|
49
47
|
${_icon.default} {
|
|
50
48
|
${disabled && (0, _styledComponents.css)`
|
|
51
|
-
color:
|
|
49
|
+
color: var(--colorsActionMinorYin030);
|
|
52
50
|
background-color: transparent;
|
|
53
51
|
`};
|
|
54
52
|
position: relative;
|