display: block;
height: auto;
box-sizing: border-box;
- font-size: var(--baseFontSize);
- font-weight: 300;
- line-height: 1.5;
+ font-weight: 400;
+ font-size: 14px;
+ line-height: 20px;
animation: fadeIn 0.3s forwards;
}
overflow: hidden;
word-break: break-word;
padding: 12px 17px;
- color: #fff;
- background-color: #475760;
+ color: #eff2f9;
+ background-color: #2a2f40;
letter-spacing: 0.04em;
}
}
.tooltip-inner a {
- border-bottom-color: #8da6b3;
- color: #a5d0ea;
+ border-bottom-color: #bdc6ff;
+ color: #bdc6ff;
}
.tooltip-inner hr {
left: 50%;
transform: translateX(-5px);
border-width: 0 5px 5px;
- border-bottom-color: #475760;
+ border-bottom-color: #2a2f40;
}
/* Workaround for react issue with onMouseLeave in disabled buttons: https://github.com/facebook/react/issues/4251 */
if (
// opens
(this.props.visible === true && !prevProps.visible) ||
- (this.props.visible === undefined &&
- this.state.visible === true &&
- prevState.visible === false)
+ (this.props.visible === undefined && this.state.visible && !prevState.visible)
) {
this.positionTooltip();
this.addEventListeners();
} else if (
// closes
(!this.props.visible && prevProps.visible === true) ||
- (this.props.visible === undefined &&
- this.state.visible === false &&
- prevState.visible === true)
+ (this.props.visible === undefined && !this.state.visible && prevState.visible)
) {
this.clearPosition();
this.removeEventListeners();
return (
<div
- className={classNames(`${classNameSpace}-inner`, { hidden: !isVisible })}
+ className={classNames(`${classNameSpace}-inner sw-font-sans`, { hidden: !isVisible })}
id={this.id}
role="tooltip"
aria-hidden={!isInteractive || !isVisible}