carbon-react 122.0.0 → 122.0.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.
@@ -122,11 +122,11 @@ const StyledLink = styled.span`
122
122
 
123
123
  a,
124
124
  button {
125
- text-decoration: underline;
125
+ text-decoration: ${hasContent ? "underline" : "none"};
126
126
  ${isMenuItem && "display: inline-block;"}
127
127
 
128
128
  > ${StyledIcon} {
129
- display: inline-block;
129
+ display: ${hasContent ? "inline-block" : "inline"};
130
130
  position: relative;
131
131
  vertical-align: middle;
132
132
  ${iconAlign === "left" && css`
@@ -131,11 +131,11 @@ const StyledLink = _styledComponents.default.span`
131
131
 
132
132
  a,
133
133
  button {
134
- text-decoration: underline;
134
+ text-decoration: ${hasContent ? "underline" : "none"};
135
135
  ${isMenuItem && "display: inline-block;"}
136
136
 
137
137
  > ${_icon.default} {
138
- display: inline-block;
138
+ display: ${hasContent ? "inline-block" : "inline"};
139
139
  position: relative;
140
140
  vertical-align: middle;
141
141
  ${iconAlign === "left" && (0, _styledComponents.css)`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "122.0.0",
3
+ "version": "122.0.1",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",