import DropdownIcon from '../../../components/icons/DropdownIcon';
import { translate, translateWithParameters } from '../../../helpers/l10n';
import { Issue } from '../../../types/types';
+import Tooltip from '../../controls/Tooltip';
import Avatar from '../../ui/Avatar';
import SetAssigneePopup from '../popups/SetAssigneePopup';
onRequestClose={this.handleClose}
open={isOpen}
overlay={<SetAssigneePopup onSelect={this.props.onAssign} />}>
- <ButtonLink
- aria-expanded={isOpen}
- aria-label={
- assigneeName
- ? translateWithParameters(
- 'issue.assign.assigned_to_x_click_to_change',
- assigneeName
- )
- : translate('issue.assign.unassigned_click_to_assign')
- }
- className="issue-action issue-action-with-options js-issue-assign"
- onClick={this.toggleAssign}>
- {this.renderAssignee()}
- <DropdownIcon className="little-spacer-left" />
- </ButtonLink>
+ <Tooltip overlay={assigneeName}>
+ <ButtonLink
+ aria-expanded={isOpen}
+ aria-label={
+ assigneeName
+ ? translateWithParameters(
+ 'issue.assign.assigned_to_x_click_to_change',
+ assigneeName
+ )
+ : translate('issue.assign.unassigned_click_to_assign')
+ }
+ className="issue-action issue-action-with-options js-issue-assign"
+ onClick={this.toggleAssign}>
+ {this.renderAssignee()}
+ <DropdownIcon className="little-spacer-left" />
+ </ButtonLink>
+ </Tooltip>
</Toggler>
</div>
);
/>
}
>
- <ButtonLink
- aria-expanded={true}
- aria-label="issue.assign.assigned_to_x_click_to_change.John Doe"
- className="issue-action issue-action-with-options js-issue-assign"
- onClick={[Function]}
+ <Tooltip
+ overlay="John Doe"
>
- <span
- className="text-top"
+ <ButtonLink
+ aria-expanded={true}
+ aria-label="issue.assign.assigned_to_x_click_to_change.John Doe"
+ className="issue-action issue-action-with-options js-issue-assign"
+ onClick={[Function]}
>
- <withAppStateContext(Avatar)
- className="little-spacer-right"
- hash="gravatarhash"
- name=""
- size={16}
+ <span
+ className="text-top"
+ >
+ <withAppStateContext(Avatar)
+ className="little-spacer-right"
+ hash="gravatarhash"
+ name=""
+ size={16}
+ />
+ </span>
+ <span
+ className="issue-meta-label"
+ >
+ John Doe
+ </span>
+ <DropdownIcon
+ className="little-spacer-left"
/>
- </span>
- <span
- className="issue-meta-label"
- >
- John Doe
- </span>
- <DropdownIcon
- className="little-spacer-left"
- />
- </ButtonLink>
+ </ButtonLink>
+ </Tooltip>
</Toggler>
</div>
`;
/>
}
>
- <ButtonLink
- aria-expanded={false}
- aria-label="issue.assign.unassigned_click_to_assign"
- className="issue-action issue-action-with-options js-issue-assign"
- onClick={[Function]}
- >
- <span
- className="issue-meta-label"
+ <Tooltip>
+ <ButtonLink
+ aria-expanded={false}
+ aria-label="issue.assign.unassigned_click_to_assign"
+ className="issue-action issue-action-with-options js-issue-assign"
+ onClick={[Function]}
>
- unassigned
- </span>
- <DropdownIcon
- className="little-spacer-left"
- />
- </ButtonLink>
+ <span
+ className="issue-meta-label"
+ >
+ unassigned
+ </span>
+ <DropdownIcon
+ className="little-spacer-left"
+ />
+ </ButtonLink>
+ </Tooltip>
</Toggler>
</div>
`;
/>
}
>
- <ButtonLink
- aria-expanded={false}
- aria-label="issue.assign.assigned_to_x_click_to_change.John Doe"
- className="issue-action issue-action-with-options js-issue-assign"
- onClick={[Function]}
+ <Tooltip
+ overlay="John Doe"
>
- <span
- className="text-top"
+ <ButtonLink
+ aria-expanded={false}
+ aria-label="issue.assign.assigned_to_x_click_to_change.John Doe"
+ className="issue-action issue-action-with-options js-issue-assign"
+ onClick={[Function]}
>
- <withAppStateContext(Avatar)
- className="little-spacer-right"
- hash="gravatarhash"
- name=""
- size={16}
+ <span
+ className="text-top"
+ >
+ <withAppStateContext(Avatar)
+ className="little-spacer-right"
+ hash="gravatarhash"
+ name=""
+ size={16}
+ />
+ </span>
+ <span
+ className="issue-meta-label"
+ >
+ John Doe
+ </span>
+ <DropdownIcon
+ className="little-spacer-left"
/>
- </span>
- <span
- className="issue-meta-label"
- >
- John Doe
- </span>
- <DropdownIcon
- className="little-spacer-left"
- />
- </ButtonLink>
+ </ButtonLink>
+ </Tooltip>
</Toggler>
</div>
`;