Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Tooltip to Susi Launcher Button #1770 #1771

Merged
merged 1 commit into from Jan 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/components/BotBuilder/Preview/Preview.css
Expand Up @@ -5,6 +5,26 @@
margin: auto;
padding: 0 20px;
}
.tooltiptext
{
visibility: hidden;
width: 120px;
background-color: black;
color: #fff;
text-align: center;
padding: 5px 0;
border-radius: 6px;
float: left ;
position: relative;
left:-125px;
}

.susi-launcher:hover .tooltiptext
{
visibility: visible;
}


.susi-body-noscroll {
position: fixed;
overflow: hidden;
Expand Down
2 changes: 1 addition & 1 deletion src/components/BotBuilder/Preview/Preview.js
Expand Up @@ -4,7 +4,6 @@ import urls from '../../../utils/urls';
import PropTypes from 'prop-types';
import './Chatbot.css';
import './Preview.css';

const host = window.location.protocol + '//' + window.location.host;
class Preview extends Component {
constructor() {
Expand Down Expand Up @@ -353,6 +352,7 @@ class Preview extends Component {
style={styles.launcher}
>
<div
data-tip="Toogle Launcher"
id="susi-launcher-button"
className="susi-launcher-button"
style={styles.botIcon}
Expand Down