1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 06:49:40 +02:00

fix(web-editor): add search hint text [EE-3967] (#7496)

This commit is contained in:
Matt Hook 2022-08-25 10:11:25 +12:00 committed by GitHub
parent c6ab5d5717
commit d4f4bb532f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 96 additions and 10 deletions

View file

@ -10,9 +10,10 @@ type Position = 'top' | 'right' | 'bottom' | 'left';
export interface Props {
position?: Position;
message: string;
className?: string;
}
export function Tooltip({ message, position = 'bottom' }: Props) {
export function Tooltip({ message, position = 'bottom', className }: Props) {
const id = _.uniqueId('tooltip-');
return (
@ -28,7 +29,7 @@ export function Tooltip({ message, position = 'bottom' }: Props) {
type="info"
place={position}
effect="solid"
className={styles.tooltip}
className={clsx(styles.tooltip, className)}
arrowColor="transparent"
/>
</span>