Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Commit

Permalink
feat(component): Made SelectBox.Item selectable
Browse files Browse the repository at this point in the history
  • Loading branch information
quintesse committed Jul 13, 2018
1 parent dbd2897 commit 914a47a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/SelectBox.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@


.template-item.dummy {
font-family: 'Redacted Script' !important;
}
Expand All @@ -8,6 +7,10 @@
font-family: 'Redacted Script Bold' !important;
}

.template-item.selected {
background-color: gainsboro !important;
}

.template-item .picture {
display: inline-block;
width: 90px;
Expand Down
3 changes: 2 additions & 1 deletion src/components/SelectBox.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import React from 'react';
import PropTypes from 'prop-types';
import './SelectBox.css';
import classNames from 'classnames';

import { Card, Label } from 'semantic-ui-react'
import Picture from './Picture';

const Item = (props) => (
<Card as="a" className={`template-item ${props.dummy && 'dummy'}`} onClick={props.onClick} raised>
<Card as="a" className={classNames('template-item', {'dummy': props.dummy, 'selected': props.selected})} onClick={props.onClick} raised>
<div className="main-content">
<Picture value={props.picture} />
<Card.Content>
Expand Down

0 comments on commit 914a47a

Please sign in to comment.