Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.

Commit

Permalink
fix(tags): show edit button on focus (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeusorion committed Mar 27, 2019
1 parent 3c96df0 commit c1506e9
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions src/components/TagList/TagList.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,24 +102,26 @@ export default class TagList extends Component {
);
const tooltipOverflowCount = tags.length - totalTagsDisplayed;
overflowCountNode = (
<Tooltip
className="bx--cell--tooltip"
showIcon={false}
triggerText={overflowCountNode}
tabIndex={0}>
{overflowTagsNode}
{tooltipOverflowCount === 0 ? (
undefined
) : (
<div
className={tooltipTagClassName}
title={`${tooltipOverflowCount} more ${
tooltipOverflowCount === 1 ? 'tag' : 'tags'
}`}>
{`(+${tooltipOverflowCount})`}
</div>
)}
</Tooltip>
<div className="bx--tag-list--tag-counter-tooltip" tabIndex="0">
<Tooltip
className="bx--cell--tooltip"
tabIndex={-1}
showIcon={false}
triggerText={overflowCountNode}>
{overflowTagsNode}
{tooltipOverflowCount === 0 ? (
undefined
) : (
<div
className={tooltipTagClassName}
title={`${tooltipOverflowCount} more ${
tooltipOverflowCount === 1 ? 'tag' : 'tags'
}`}>
{`(+${tooltipOverflowCount})`}
</div>
)}
</Tooltip>
</div>
);
}

Expand Down

0 comments on commit c1506e9

Please sign in to comment.