use eye-off instead of search-x

This commit is contained in:
Mike Rodarte 2026-03-01 19:50:25 -05:00
parent f17a50f8f7
commit 4e9acea78a
No known key found for this signature in database
GPG key ID: 32DCD8C789A592CC
2 changed files with 3 additions and 3 deletions

View file

@ -53,7 +53,7 @@ export class WordFrequencyDisplay {
cls: ELEMENT_CLASSES.containerButton,
});
const button = buttonContainer.createEl('button');
setIcon(button, 'search-x');
setIcon(button, 'eye-off');
this.plugin.registerDomEvent(button, 'click', () => {
this.saveWordToBlacklist(word);
});

View file

@ -138,7 +138,7 @@ describe('WordFrequencyDisplay', () => {
'click',
expect.any(Function)
);
expect(setIcon).toHaveBeenCalledWith(buttonElement, 'search-x');
expect(setIcon).toHaveBeenCalledWith(buttonElement, 'eye-off');
});
it.todo('should verify the button click event handles the word');
@ -160,7 +160,7 @@ describe('WordFrequencyDisplay', () => {
expect(contentContainer.createEl).toHaveBeenCalledWith('div', {
cls: ELEMENT_CLASSES.containerRow,
});
expect(setIcon).toHaveBeenCalledWith(buttonElement, 'search-x');
expect(setIcon).toHaveBeenCalledWith(buttonElement, 'eye-off');
expect(mockPlugin.registerDomEvent).toHaveBeenCalledWith(
buttonElement,
'click',