diff --git a/src/components/button/button.css b/src/components/button/button.css index 5e69aabd4..9ce746c52 100644 --- a/src/components/button/button.css +++ b/src/components/button/button.css @@ -7,6 +7,7 @@ align-items: center; padding-left: .75rem; padding-right: .75rem; + user-select: none; } .icon { diff --git a/src/components/filter/icon--filter.svg b/src/components/filter/icon--filter.svg index 2a0c75fcb..400bd6234 100644 --- a/src/components/filter/icon--filter.svg +++ b/src/components/filter/icon--filter.svg @@ -1,3 +1,3 @@ diff --git a/src/components/filter/icon--x.svg b/src/components/filter/icon--x.svg index e78a2a8e2..88b52e870 100644 --- a/src/components/filter/icon--x.svg +++ b/src/components/filter/icon--x.svg @@ -1,3 +1,3 @@ diff --git a/src/components/library/library.css b/src/components/library/library.css index 489162a67..9a1872bae 100644 --- a/src/components/library/library.css +++ b/src/components/library/library.css @@ -17,9 +17,15 @@ display: flex; flex-direction: row; background-color: $motion-transparent; + justify-content: flex-start; + height: 4.5rem; padding: 1rem; } +.filter-bar-item { + margin-right: .75rem; +} + .filter { flex-grow: 0; } @@ -29,11 +35,11 @@ transition: 6s; } -.filter-input:focus { +.filter-input:focus, +.filter-input:not([value=""]) { width: 13.25rem; } .divider { - margin: 0 .75rem; transform: scaleY(1.39); } diff --git a/src/components/library/library.jsx b/src/components/library/library.jsx index ec9b26097..2e0d3085c 100644 --- a/src/components/library/library.jsx +++ b/src/components/library/library.jsx @@ -1,3 +1,4 @@ +import classNames from 'classnames'; import bindAll from 'lodash.bindall'; import PropTypes from 'prop-types'; import React from 'react'; @@ -6,9 +7,23 @@ import LibraryItem from '../library-item/library-item.jsx'; import ModalComponent from '../modal/modal.jsx'; import Divider from '../divider/divider.jsx'; import Filter from '../filter/filter.jsx'; +import TagButton from '../tag-button/tag-button.jsx'; + +import placeholderSvg from '../../lib/assets/placeholder.svg'; import styles from './library.css'; +const tagListPrefix = [{ + active: true, + title: 'All', + iconSrc: placeholderSvg +}]; + +const defaultTagProps = { + active: false, + iconSrc: placeholderSvg +}; + class LibraryComponent extends React.Component { constructor (props) { super(props); @@ -59,17 +74,38 @@ class LibraryComponent extends React.Component { contentLabel={this.props.title} onRequestClose={this.props.onRequestClose} > -