Skip to content
Snippets Groups Projects
Commit b10ed568 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

selectively apply a css class to our "focused" pulse list item.

parent 754b35fe
Branches
Tags
No related merge requests found
......@@ -55,6 +55,10 @@
opacity: 1;
}
.PulseListItem.PulseListItem--focused {
}
.DangerZone:hover {
border-color: var(--error-color);
transition: border .3s ease-in;
......
import React, { Component, PropTypes } from "react";
import cx from "classnames";
import PulseListChannel from "./PulseListChannel.jsx";
export default class PulseListItem extends Component {
......@@ -20,7 +22,7 @@ export default class PulseListItem extends Component {
let { pulse, formInput, user } = this.props;
return (
<div ref="pulseListItem" className="PulseListItem bordered rounded mb2 pt3">
<div ref="pulseListItem" className={cx("PulseListItem bordered rounded mb2 pt3", {"PulseListItem--focused": this.props.scrollTo})}>
<div className="flex px4 mb2">
<div>
<h2 className="mb1">{pulse.name}</h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment