-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add focus indicator to File Details tabs view #9956
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9956 +/- ##
=========================================
Coverage ? 52.07%
Complexity ? 25984
=========================================
Files ? 1651
Lines ? 95983
Branches ? 1290
=========================================
Hits ? 49984
Misses ? 45999
Partials ? 0 |
@kevgathuku I also thought about just restoring the outline, but it doesn’t look so nice. What we should do is simply also add the proper :focus/:active effect so it works the same as for :hover. :) Like for example we did with #9951 (Keyboard navigation accessibility) |
Thanks for the tips @jancborchardt |
@kevgathuku great, thanks! :) Keep in mind to do it step by step, small separate pull requests. :) For example, start with fixing only the headers in the sidebar as you mentioned in the original issue. |
Thanks once again. I'll focus on that section for now @jancborchardt For the file details view the current hover effect is to underline the tab. I'm not sure the same underlining effect for the For example, in this image, the Restoring the browser default outline might just work, at least for the tabs section. What do you think of this? |
@kevgathuku I would say it’s two different steps: 1) visualizing :hover exactly as we do :focus and 2) thinking about how we want to visualize it. I would say this pull request is about 1). :) And the current way to visualize is fine, but we can of course talk about it – but after we fix the basic accessibility. |
@kevgathuku in other words: What you show in the screenshot is great! 😃 |
Got it @jancborchardt |
Hi @jancborchardt would you happen to know if there is some guide on how to set up a local dev environment, or a resource you can recommend? I'm using a Mac currently and I'm currently having trouble setting up the project for development. I'm currently following the instructions at https://docs.nextcloud.com/server/12/admin_manual/installation/system_requirements.html#recommended-setup-for-running-nextcloud and https://docs.nextcloud.com/server/12/developer_manual/general/devenv.html |
@kevgathuku yup! The simplest guide for setting up a dev environment on macOS is at https://github.com/jancborchardt/nextcloud-scripts/blob/master/Nextcloud%20macOS%20development%20environment.md – let me know if that works. :) |
Works like a charm. Didn't know there was such a guide 😄 |
Yeah, I need to add it to the docs :) good to know that it works for you too – I only checked it with friends macOSes cause I’m on Ubuntu. ;) |
3dff988
to
4e41e79
Compare
This is once again ready for review
|
@kevgathuku nice! :) cc @nextcloud/javascript for review too. I just noticed that the underline is now grey whereas it used to be black, which is much more visible. We should change it back to that, using:
Also, for better clickability the minimum size of the tab headers should be 44px, which can be achieved using:
Can you adjust that @kevgathuku? :) (Since you are member of the Nextcloud organization here on Github, you can also do branches in the server repository itself, then we can collaborate easily on branches. :) Don’t worry about breaking stuff, as the main branches are protected.) |
core/css/apps.scss
Outdated
@@ -780,19 +780,12 @@ kbd { | |||
font-weight: 600; | |||
border-bottom: 1px solid var(--color-border); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line can be removed because the border-bottom for .selected is set in line 788 down below. :)
4e41e79
to
7b9f7dd
Compare
Thanks for the pointers @jancborchardt Finally, I've made the requested changes |
cc @nextcloud/designers |
Signed-off-by: Kevin Ndung'u <kevgathuku@gmail.com>
7b9f7dd
to
4e1feb5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is super awesome @kevgathuku! :) Just wrote a comment on a file using keyboard only and it worked well. 🎉
cc @nextcloud/accessibility for review too :)
Finally got merged 🎉 Thanks for all the feedback @jancborchardt |
5 days is pretty quick for us 😆 |
@kevgathuku awesome work! :) It would also be great to have you at our Nextcloud Conference in Berlin late August: https://nextcloud.com/conf – we provide up to 80% travel/accomodation support for contributors! 🎉 |
Amazing! I'll check out the conference and apply. |
This is a potential solution to #9944
It enables the outline by default so that the website is easily navigable via keyboard
Feedback appreciated 😄