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;
max-width: calc(100vw - 10px);
border-bottom: none;
margin: 0;
animation-duration: 0.2s;
animation-fill-mode: forwards;

View File

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

View File

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