Skip to content

Commit

Permalink
Added ids for tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Dec 1, 2022
1 parent 3aebda8 commit 2fab893
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ui/src/app/admin/container/ConfigurationList.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function ConfigurationList({ configurations, onDelete, loading }) {
<div className="d-flex justify-content-center">

<OverlayTrigger trigger={['hover', 'focus']} overlay={(
<Popover variant="info">
<Popover variant="info" id="tooltip.download-single-config">
<Popover.Body><Translate value={'tooltip.download-single-config'} /></Popover.Body>
</Popover>
)}
Expand All @@ -102,7 +102,7 @@ export function ConfigurationList({ configurations, onDelete, loading }) {
</OverlayTrigger>
<div className="vr"></div>
<OverlayTrigger trigger={['hover', 'focus']} overlay={(
<Popover variant="info">
<Popover variant="info" id="tooltip.download-multi-config">
<Popover.Body><Translate value={'tooltip.download-multi-config'} /></Popover.Body>
</Popover>
)}
Expand Down
5 changes: 3 additions & 2 deletions ui/src/app/form/component/InfoIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import { useTranslator } from '../../i18n/hooks';

export function InfoIcon ({ value = '', placement='auto', ...props }) {
const translate = useTranslator();

return(
<OverlayTrigger trigger={['hover', 'focus', 'click']} placement={placement} overlay={(
<Popover variant="info">
<OverlayTrigger trigger={['click']} placement={placement} overlay={(
<Popover variant="info" id={value}>
<Popover.Body><Translate value={value} /></Popover.Body>
</Popover>
)}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/metadata/component/properties/PropertyValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function PropertyValue ({ name, value, columns, className }) {
<>
{ name && value !== null && value !== undefined ?
<OverlayTrigger trigger={['hover', 'focus']} placement="left" overlay={(
<Popover variant="info">
<Popover variant="info" id={value.toString()}>
<Popover.Body><Translate value={value.toString()}>{value.toString()}</Translate></Popover.Body>
</Popover>
)}>
Expand Down

0 comments on commit 2fab893

Please sign in to comment.