Skip to content

Commit

Permalink
Add border on search example buttons, fix react error
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler committed Nov 19, 2020
1 parent f236b15 commit a40a0f9
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions src/js/react/Recommender/components/SearchExamples.jsx.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ define([
<React.Fragment>
<dt>{label}</dt>
<dd>
<button type="button" onClick={onClick} className="text-link">
<button
type="button"
onClick={onClick}
className="text-link"
style={{ border: 'dotted 1px rgba(0,0,0,0.3)', marginRight: '4px' }}
>
{text}
</button>
{tooltip && (
Expand Down Expand Up @@ -62,27 +67,36 @@ define([
};

return (
<div style={{ paddingTop: '1rem' }}>
<div className="col-sm-5 quick-reference">
<div
style={{
paddingTop: '1rem',
display: 'flex',
justifyContent: 'space-between',
flexWrap: 'wrap',
}}
>
<div className="quick-reference">
<Dl>
{searchExamples.slice(0, 7).map((entry) => (
<Entry
label={entry.label}
text={entry.example}
tooltip={entry.tooltip}
onClick={() => onClick(entry.example)}
key={entry.label}
/>
))}
</Dl>
</div>
<div className="col-sm-7 quick-reference">
<div className="quick-reference">
<Dl>
{searchExamples.slice(7).map((entry) => (
<Entry
label={entry.label}
text={entry.example}
tooltip={entry.tooltip}
onClick={() => onClick(entry.example)}
key={entry.label}
/>
))}
</Dl>
Expand Down

0 comments on commit a40a0f9

Please sign in to comment.