fix: should limit CSS scope, close: #147

This commit is contained in:
Benjy Cui
2016-09-10 16:52:38 +08:00
parent d7e6b9d9be
commit b6d8f389ef
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -228,7 +228,7 @@
}
}
.rc-tooltip {
.@{prefixClass}-tooltip {
position: absolute;
left: -9999px;
top: -9999px;
+1 -1
View File
@@ -51,7 +51,7 @@ export default class Handle extends React.Component {
const isTooltipVisible = dragging || this.state.isTooltipVisible;
return (
<Tooltip
prefixCls={prefixCls.replace('slider', 'tooltip')}
prefixCls={`${prefixCls}-tooltip`}
placement="top"
visible={isTooltipVisible}
overlay={<span>{tipFormatter(value)}</span>}