Skip to content

Commit

Permalink
fix(ComponentExample): remove filter effect (#2866)
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason authored Jun 3, 2018
1 parent 7470144 commit b2361f7
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ class ComponentExample extends PureComponent {
}

render() {
const { children, description, examplePath, location, suiVersion, title } = this.props
const { children, description, examplePath, suiVersion, title } = this.props
const {
handleMouseLeave,
handleMouseMove,
Expand All @@ -431,13 +431,9 @@ class ComponentExample extends PureComponent {

const isActive = this.isActiveHash() || this.isActiveState()

const isInFocus = !location.hash || (location.hash && (this.isActiveHash() || isHovering))

const exampleStyle = {
position: 'relative',
transition: 'box-shadow 200ms, background 200ms, opacity 200ms, filter 200ms',
opacity: isInFocus ? 1 : 0.4,
filter: isInFocus ? 'grayscale(0)' : 'grayscale(1)',
transition: 'box-shadow 200ms, background 200ms',
...(isActive
? {
background: '#fff',
Expand Down

0 comments on commit b2361f7

Please sign in to comment.