Skip to content

Commit 62d1cff

Browse files
jseminckCompuIves
authored andcommitted
Make action tooltips positions more consistent (codesandbox#135)
1 parent d3163e8 commit 62d1cff

File tree

1 file changed

+4
-4
lines changed
  • src/app/pages/Sandbox/Editor/Content/Header

1 file changed

+4
-4
lines changed

src/app/pages/Sandbox/Editor/Content/Header/Action.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export default ({
147147
if (href && a && (placeholder || tooltip)) {
148148
return (
149149
<ActionA href={href} target="_blank" rel="noopener noreferrer">
150-
<Tooltip title={placeholder || tooltip}>
150+
<ActionTooltip title={placeholder || tooltip}>
151151
<IconContainer {...iconContainerProps}>
152152
<Icon {...iconProps} />
153153
{title !== undefined &&
@@ -156,15 +156,15 @@ export default ({
156156
</Title>}
157157
{moreInfo && <MoreInfoIcon style={{ fontSize: '1.1rem' }} />}
158158
</IconContainer>
159-
</Tooltip>
159+
</ActionTooltip>
160160
</ActionA>
161161
);
162162
}
163163

164164
if (href && (placeholder || tooltip)) {
165165
return (
166166
<ActionLink to={href} {...props}>
167-
<Tooltip title={placeholder || tooltip}>
167+
<ActionTooltip title={placeholder || tooltip}>
168168
<IconContainer>
169169
<Icon {...iconProps} />
170170
{title !== undefined &&
@@ -173,7 +173,7 @@ export default ({
173173
</Title>}
174174
{moreInfo && <MoreInfoIcon style={{ fontSize: '1.1rem' }} />}
175175
</IconContainer>
176-
</Tooltip>
176+
</ActionTooltip>
177177
</ActionLink>
178178
);
179179
}

0 commit comments

Comments
 (0)