|
|
@ -88,7 +88,7 @@ const SelectedItem = ({ children, isOpen, color, ...rest }) => {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<span {...rest} tabIndex="0" className={`dropdown-display ${isOpen ? 'is-open' : ''}`}>
|
|
|
|
<span {...rest} tabIndex="0" className={`dropdown-display ${isOpen ? 'is-open' : ''}`}>
|
|
|
|
<span className="dropdown-display-text">{children}</span>
|
|
|
|
<span className="dropdown-display-text">{children}</span>
|
|
|
|
<div className={`dropdown-arrow`}>
|
|
|
|
<div role="button" className={`dropdown-arrow`}>
|
|
|
|
<ArrowDown fill={itemColor} />
|
|
|
|
<ArrowDown fill={itemColor} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<style jsx>{`
|
|
|
|
<style jsx>{`
|
|
|
@ -123,7 +123,7 @@ const SelectedItem = ({ children, isOpen, color, ...rest }) => {
|
|
|
|
|
|
|
|
|
|
|
|
const ListItems = ({ children, color }) => {
|
|
|
|
const ListItems = ({ children, color }) => {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<ul className="dropdown-list">
|
|
|
|
<ul role="listbox" className="dropdown-list">
|
|
|
|
{children}
|
|
|
|
{children}
|
|
|
|
<style jsx>{`
|
|
|
|
<style jsx>{`
|
|
|
|
.dropdown-list {
|
|
|
|
.dropdown-list {
|
|
|
@ -142,7 +142,7 @@ const ListItem = ({ children, color, isHighlighted, isSelected, ...rest }) => {
|
|
|
|
const itemColor = color || COLORS.SECONDARY
|
|
|
|
const itemColor = color || COLORS.SECONDARY
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<li {...rest} className="dropdown-list-item">
|
|
|
|
<li {...rest} role="option" className="dropdown-list-item">
|
|
|
|
<span className="dropdown-list-item-text">{children}</span>
|
|
|
|
<span className="dropdown-list-item-text">{children}</span>
|
|
|
|
{isSelected ? <CheckMark /> : null}
|
|
|
|
{isSelected ? <CheckMark /> : null}
|
|
|
|
<style jsx>{`
|
|
|
|
<style jsx>{`
|
|
|
|