Skip to content

Commit 3cbbba1

Browse files
authored
fix(Tooltip): prefixCls and span line-height while in disabled Compatible (#5627)
1 parent d9b3d80 commit 3cbbba1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/tooltip/Tooltip.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ export default defineComponent({
158158
display: 'inline-block', // default inline-block is important
159159
...picked,
160160
cursor: 'not-allowed',
161+
lineHeight: 1, // use the true height of child nodes
161162
width: ele.props && ele.props.block ? '100%' : null,
162163
};
163164
const buttonStyle = {
@@ -172,7 +173,7 @@ export default defineComponent({
172173
true,
173174
);
174175
return (
175-
<span style={spanStyle} class={`${prefixCls}-disabled-compatible-wrapper`}>
176+
<span style={spanStyle} class={`${prefixCls.value}-disabled-compatible-wrapper`}>
176177
{child}
177178
</span>
178179
);

0 commit comments

Comments
 (0)