-
-
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
Accessibility ♿ #9862
Accessibility ♿ #9862
Conversation
ba680ee
to
2b00d70
Compare
Codecov Report
@@ Coverage Diff @@
## master #9862 +/- ##
=========================================
Coverage ? 51.97%
Complexity ? 26017
=========================================
Files ? 1660
Lines ? 96167
Branches ? 1290
=========================================
Hits ? 49982
Misses ? 46185
Partials ? 0
|
Analysing /drone/src/github.com/nextcloud/server/apps/accessibility/lib/Controller/AccessibilityController.php |
Tests look good - only this one is failing:
Looks like a temporal hiccup, right @danxuliu? |
@MorrisJobke Yes, timeout issue by the tests. |
Really great stuff! Another thing we should probably do when accessibility is enabled, to move the fonts from Light+Semibold (300+600) to Regular+Bold (400+700). Also, the buttons for the avatar change look very dark? The contrast with the icon is not enough. We should only make the border darker, like with the inputs. |
Really nice idea!
Yes, I increased the opacity to the max for the highcontrast theme and removed the slight variations we have on the background. Basically, I only allowed 2 tones: background and slightly darker background and the font foreground. |
Also cc @nextcloud/accessibility @nextcloud/designers for review :) |
@jancborchardt not ready for review :) |
Okay now! :) |
So, everyone in @nextcloud/accessibility @nextcloud/designers – any review is welcome! :) |
if (!is_null($loggedUser)) { | ||
$userValues = $this->config->getUserKeys($loggedUser->getUID(), $this->appName); | ||
if(count($userValues) > 0) { | ||
\OCP\Util::addStyle($this->appName, 'user-' . md5(implode('-', $userValues)), true); |
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.
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.
(It should be /index.php/apps/accessibility... )
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.
@juliushaertl hum, tricky!
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.
Maybe that will help:
server/apps/theming/appinfo/app.php
Lines 35 to 47 in 0eebff1
$linkToCSS = \OC::$server->getURLGenerator()->linkToRoute( | |
'theming.Theming.getStylesheet', | |
[ | |
'v' => \OC::$server->getConfig()->getAppValue('theming', 'cachebuster', '0'), | |
] | |
); | |
\OCP\Util::addHeader( | |
'link', | |
[ | |
'rel' => 'stylesheet', | |
'href' => $linkToCSS, | |
] | |
); |
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.
But you cannot prepend with addHeader :/
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.
Well, apparently it works without the prepend now.
Why do we want to have this enabled by default and shipped with the core-server? Love the contrast-mode :) |
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: Morris Jobke <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Okay, so let get this merge then! :) |
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.
I like it 👍 Lets get it in and ask for some feedback
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
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.
+1 lets do this and iterate later.
Fixes #1692
Requires #9723
themes
fonts