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
Focus is displayed inconsistently #11758
Comments
It doesn't seem entirely necessary to track these sort of changes separately, since it'd make a lot more sense to address this as part of #9702 (which covers modernization of the UI). That work is however made more difficult by the lack of an updated official PDF.js design-spec from the Firefox UI/UX-team. Also, this issue seem to lack a good closing criteria, i.e. it's not entirely clear at what point it would actually be considered "fixed"; the third paragraph of https://github.com/mozilla/pdf.js/blob/master/.github/CONTRIBUTING.md is perhaps relevant here. |
You're right, it's a good idea to track this topic in #9702.
Well, that's up to you. I just thought you might be interested to learn the focus is displayed differently. I can't decide what it should look like. That your job, or the job of your UX designers. :) I've started to create my own UI of the viewer which embraces the look and feel of Material Design, so probably I'm going to implement the focus the way Angular Material does. But that's only my choice. By the way, it's interesting that the my new design resembles #11077 despite being developed independently. Have a look at https://pdfviewer.net/find if you're interested in the intermediate result. |
@Snuffleupagus I've found the relevant part of the Mozilla UI guidelines for you: https://design.firefox.com/photon/components/buttons.html |
Let's indeed track this together with the Photon modernization efforts. Thanks! |
Have a look at the showcase https://mozilla.github.io/pdf.js/web/viewer.html. Open the find dialog, click into the input field and hit the tab key three times. While doing that, you'll observe the focus is displayed in three different ways:
Note that's a general topic. I only mentioned the findbar because all three options are there side-by-side.
Using Chrome the focus looks a bit different. In particular, the checkboxes aren't hightlighted at all, and the buttons don't have the white border.
Here are some screenshots, taken with a current Firefox:
I also wonder why there's so much focus-related CSS. I suppose you could join several of these rules.
The text was updated successfully, but these errors were encountered: