Use hide instead of hidden
This commit is contained in:
parent
2272e95acd
commit
6cd98a6fa8
1 changed files with 2 additions and 2 deletions
|
@ -33,12 +33,12 @@ export default class SecretValues {
|
||||||
updateDom(isRevealed) {
|
updateDom(isRevealed) {
|
||||||
const values = this.container.querySelectorAll(this.valueSelector);
|
const values = this.container.querySelectorAll(this.valueSelector);
|
||||||
values.forEach((value) => {
|
values.forEach((value) => {
|
||||||
value.classList.toggle('hidden', !isRevealed);
|
value.classList.toggle('hide', !isRevealed);
|
||||||
});
|
});
|
||||||
|
|
||||||
const placeholders = this.container.querySelectorAll(this.placeholderSelector);
|
const placeholders = this.container.querySelectorAll(this.placeholderSelector);
|
||||||
placeholders.forEach((placeholder) => {
|
placeholders.forEach((placeholder) => {
|
||||||
placeholder.classList.toggle('hidden', isRevealed);
|
placeholder.classList.toggle('hide', isRevealed);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.revealButton.textContent = isRevealed ? n__('Hide value', 'Hide values', values.length) : n__('Reveal value', 'Reveal values', values.length);
|
this.revealButton.textContent = isRevealed ? n__('Hide value', 'Hide values', values.length) : n__('Reveal value', 'Reveal values', values.length);
|
||||||
|
|
Loading…
Reference in a new issue