carbon-react 118.0.0 → 118.1.0

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.
@@ -16,6 +16,14 @@ function makeColors(color) {
16
16
  }
17
17
 
18
18
  const StyledButtonMinor = styled(Button)`
19
+ ${({
20
+ children
21
+ }) => !children && css`
22
+ ${StyledIcon} {
23
+ position: absolute;
24
+ }
25
+ `}
26
+
19
27
  ${({
20
28
  buttonType,
21
29
  destructive,
@@ -32,6 +32,14 @@ function makeColors(color) {
32
32
  }
33
33
 
34
34
  const StyledButtonMinor = (0, _styledComponents.default)(_button.default)`
35
+ ${({
36
+ children
37
+ }) => !children && (0, _styledComponents.css)`
38
+ ${_icon.default} {
39
+ position: absolute;
40
+ }
41
+ `}
42
+
35
43
  ${({
36
44
  buttonType,
37
45
  destructive,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "118.0.0",
3
+ "version": "118.1.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",