add namespace to avoid css collistions

This commit is contained in:
Sharon Kennedy 2020-05-26 09:22:08 -04:00
parent f262c9df0f
commit 8427e82c9d
3 changed files with 93 additions and 88 deletions

View File

@ -99,6 +99,7 @@
width: 400px; width: 400px;
max-width: calc(100vw - 10px); max-width: calc(100vw - 10px);
border-bottom: none; border-bottom: none;
margin: 0;
animation-duration: 0.2s; animation-duration: 0.2s;
animation-fill-mode: forwards; animation-fill-mode: forwards;

View File

@ -599,6 +599,7 @@ class ChatBox extends React.Component {
const inputLabel = 'Send a message...' const inputLabel = 'Send a message...'
return ( return (
<div id="safesupport">
<div className="docked-widget" role="complementary"> <div className="docked-widget" role="complementary">
<Transition in={opened} timeout={250} onExited={this.handleWidgetExit} onEntered={this.handleWidgetEnter}> <Transition in={opened} timeout={250} onExited={this.handleWidgetExit} onEntered={this.handleWidgetEnter}>
{(status) => { {(status) => {
@ -697,6 +698,7 @@ class ChatBox extends React.Component {
{showDock && !roomId && <Dock handleToggleOpen={this.handleToggleOpen} />} {showDock && !roomId && <Dock handleToggleOpen={this.handleToggleOpen} />}
{showDock && roomId && <Header handleToggleOpen={this.handleToggleOpen} opened={opened} handleExitChat={this.handleExitChat} />} {showDock && roomId && <Header handleToggleOpen={this.handleToggleOpen} opened={opened} handleExitChat={this.handleExitChat} />}
</div> </div>
</div>
); );
} }
}; };

View File

@ -1,4 +1,6 @@
#safesupport {
@import "variables"; @import "variables";
@import "loader"; @import "loader";
@import "chat"; @import "chat";
@import "dark_mode"; @import "dark_mode";
}