Skip to content

Commit

Permalink
fix(password-field): deregister overflow tooltip and text ellipsis (#769
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bualoy-napat authored Jun 22, 2023
1 parent e7aad23 commit 1579e08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
cursor: pointer;
}

[part=input]::-ms-reveal {
display: none;
[part=input] {
text-overflow: unset;
&::-ms-reveal {
display: none;
}
}
}
3 changes: 3 additions & 0 deletions packages/elements/src/password-field/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { TextField } from '../text-field/index.js';
import '../icon/index.js';
import '@refinitiv-ui/phrasebook/locale/en/password-field.js';
import { translate, Translate } from '@refinitiv-ui/translate';
import { deregisterOverflowTooltip } from '../tooltip/index.js';

let isEyeOffPreloadRequested = false;

Expand Down Expand Up @@ -75,6 +76,8 @@ export class PasswordField extends TextField {
preload('eye-off');
isEyeOffPreloadRequested = true;
}
// password shouldn't display value on tooltip when value is overflow
deregisterOverflowTooltip(this);
}

/**
Expand Down

0 comments on commit 1579e08

Please sign in to comment.