Skip to content
Snippets Groups Projects
Commit f441f2d7 authored by Tom Robinson's avatar Tom Robinson
Browse files

Pulse the add to dash icon

parent 85bc79a1
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,29 @@
height: 42.5px;
}
@keyframes icon-pulse {
0% {
box-shadow: 0 0 5px rgba(80,158,227, 1.0);
}
50% {
box-shadow: 0 0 5px rgba(80,158,227, 0.25);
}
100% {
box-shadow: 0 0 5px rgba(80,158,227, 1.0);
}
}
.Icon--pulse {
border-radius: 99px;
box-shadow: 0 0 5px #509EE3;
padding: 0.75em;
animation-name: icon-pulse;
animation-duration: 2s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@media screen and (--breakpoint-min-md) {
.Logo .Icon {
width: 66px;
......
......@@ -15,6 +15,8 @@ import {
deleteDashboard
} from '../actions';
import cx from "classnames";
export default class DashboardHeader extends React.Component {
onEditDashboard() {
......@@ -100,11 +102,13 @@ export default class DashboardHeader extends React.Component {
// <Icon name="add" width="16px" height="16px" />
// </a>
// ]);
var isEmpty = dashboard.ordered_cards.length === 0;
buttonSections.push([
<PopoverWithTrigger
ref="addQuestionModal"
tether={false}
triggerElement={<Icon name="add" width="16px" height="16px" />}
triggerElement={<Icon className={cx({ "Icon--pulse": isEmpty })} name="add" width="16px" height="16px" />}
>
<AddToDashSelectQuestionModal
dispatch={this.props.dispatch}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment