Skip to content

Commit

Permalink
ResultField: Remove unnecessary span wrapper, accessibility tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Dec 7, 2020
1 parent 96ad7db commit ed4528a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ interface Props {
export const ResultField: React.FC<Props> = ({ field, raw, snippet, type }) => {
return (
<div className="appSearchResultField">
<div className="appSearchResultField__key eui-textTruncate">
<span>{field}</span>
</div>
<div className="appSearchResultField__separator" />
<div className="appSearchResultField__key eui-textTruncate">{field}</div>
<div className="appSearchResultField__separator" aria-hidden />
<div className="appSearchResultField__value">
<ResultFieldValue className="eui-textTruncate" raw={raw} snippet={snippet} type={type} />
</div>
Expand Down

0 comments on commit ed4528a

Please sign in to comment.