The Wayback Machine - https://web.archive.org/web/20210830052304/https://github.com/laurent22/joplin/issues/5299
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop: Note search bar should have a text warning with the background colour change. #5299

Open
CalebJohn opened this issue Aug 13, 2021 · 15 comments · May be fixed by #5360
Open

Desktop: Note search bar should have a text warning with the background colour change. #5299

CalebJohn opened this issue Aug 13, 2021 · 15 comments · May be fixed by #5360

Comments

@CalebJohn
Copy link
Collaborator

@CalebJohn CalebJohn commented Aug 13, 2021

ref

Currently, a user's only indication that the text they are looking for is not found, is the background colour of the search box
image
Not only is this an issue for accessibility, it's not always clear what the colour is trying to indicate
image

This feature fix will have 2 parts

  1. Check the themes and choose a more appropriate warningBackgroundColor.
  2. Update the NoteSearchBar to display the text No matches (or something similar)
  • Remember to localize the search task, please ask if you don't know how to do this

This is an example of how it's done in firefox, the text on the right is the important part here
image

@thesunshade
Copy link

@thesunshade thesunshade commented Aug 13, 2021

I agree that the text message is most important. As far as colors, red is a universal (???) warning color. But red is also a common colorblind problem.

I like the FireFox color solution of using a red outline. Having a red background color would probably be too intense. I'd also question the logic of allowing themes to choose this color. To me it falls more in the realm of function rather than style. In any case having a text message is necessary.

@sif
Copy link

@sif sif commented Aug 14, 2021

It may be a separate issue but this is for searching in notes itself. What about the search in the note panel?

a

@CalebJohn
Copy link
Collaborator Author

@CalebJohn CalebJohn commented Aug 14, 2021

Hi @sif, I don't understand your comment. This issue is in regards to the in-note search box. The global search (as seen in your image) does not exhibit the same problem.

@nik-gautam
Copy link

@nik-gautam nik-gautam commented Aug 19, 2021

Hi,
I would like to work on this issue.

@CalebJohn
Copy link
Collaborator Author

@CalebJohn CalebJohn commented Aug 19, 2021

@nik-gautam Go ahead.

@nik-gautam
Copy link

@nik-gautam nik-gautam commented Aug 19, 2021

Hi,

So, I tried a few things. Can you please tell me if they look fine?

For Dark Theme:
Screenshot from 2021-08-19 22-58-15

For Light Theme:
Screenshot from 2021-08-19 22-58-41

@CalebJohn
Copy link
Collaborator Author

@CalebJohn CalebJohn commented Aug 19, 2021

@nik-gautam looks like you've got it! The only issue i can see is in your choice of background colour. The white text on a red background is difficult to read. You should use the dev tools to ensure that the contrast is sufficiently high.

@nik-gautam
Copy link

@nik-gautam nik-gautam commented Aug 20, 2021

@CalebJohn, I have a few doubts.

1> Is this color better?
Screenshot from 2021-08-20 09-23-25

2> The file NoteSearchBar is in JS now, so should I be converting to TypeScript before sending a pull request?

@thesunshade
Copy link

@thesunshade thesunshade commented Aug 20, 2021

1> Is this color better?
Screenshot from 2021-08-20 09-23-25

Were you able to try just putting a red border on the text box instead of using a background change? Like in the firefox example above?

That way there is no readability issue and it could be the same for both light and dark themes.

@CalebJohn
Copy link
Collaborator Author

@CalebJohn CalebJohn commented Aug 20, 2021

@nik-gautam

  1. Much better, please also confirm that the warning bar in Tools -> Options -> Encryption looks good with this colour (they share the theme colour if I remember correctly). You'll also need to confirm that this looks good using the themes that inherit from the dark theme (or change them if not)
  2. Since this is such a small change, I would say no.

Were you able to try just putting a red border on the text box instead of using a background change? Like in the firefox example above?

It wouldn't hurt to look in to this, but users can often be resistant to change so I'm a bit hesitant to push this too far.

@nik-gautam
Copy link

@nik-gautam nik-gautam commented Aug 20, 2021

@CalebJohn and @thesunshade

so, I tried changing the border colour like the firefox example.

Here are the screenshots:-

  • Light Theme w/ Border Color:-
    Screenshot from 2021-08-20 11-49-58

  • Light Theme w/ Background Color:-
    Screenshot from 2021-08-20 11-57-55

  • Dark Theme w/ Border Color:-
    Screenshot from 2021-08-20 11-49-29

  • Dark Theme w/ Background Color:-
    Screenshot from 2021-08-20 11-58-19

Personally, I like the whole background colour red, as the input area is quite small and the larger area with red colour brings more attention.

Also, The encryption tab looks fine with the new warning color:-
Screenshot from 2021-08-20 11-28-35
Screenshot from 2021-08-20 12-05-29

I also found one more place where the warning colour was used:-
Screenshot from 2021-08-20 11-51-08

I tried to look for more places where this colour is used this is all I found. If I am missing some place, please remind me.

Also, can you tell me how to go about the localization for the "Phrase not found" string?

@thesunshade
Copy link

@thesunshade thesunshade commented Aug 20, 2021

users can often be resistant to change so I'm a bit hesitant to push this too far.

Indeed they can!

Thanks @nik-gautam for your work on this!!

@nik-gautam
Copy link

@nik-gautam nik-gautam commented Aug 20, 2021

Thanks @nik-gautam for your work on this!!

It's my pleasure :)

@nik-gautam
Copy link

@nik-gautam nik-gautam commented Aug 20, 2021

@CalebJohn can you help out with this part? I am a bit confused about how to go about doing this.

Remember to localize the search task, please ask if you don't know how to do this

Sorry.

@CalebJohn
Copy link
Collaborator Author

@CalebJohn CalebJohn commented Aug 20, 2021

@nik-gautam please make a PR and we can continue the discusy there. At this point it's easier to talk about the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

4 participants