-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Fixed Logo not showing with 'accessability' themes #26989
Conversation
…ix for nextcloud#26578 Signed-off-by: Daniel Fuchs <fuchsi3010@gmail.com>
the DCO check didn't go through, i hope i fixed it now |
Many thanks for opening the PR. I verified that the overrides need to be done in all four style sheets, as enabling any of the accessibility flags (dark mode, high contrast, dyslexia font) alone or in combination is changing the style variable to point to a Did you or could you test whether using the theming app to change the logo, in combination with an accessibility flag, still works? And yes, it is a bit hacky without knowing the underlying idea/concept behind these (logo) variables, why the style root directory is changed at all by the theming app and whether this can be done more selectively for the shipped style sheets only in the first place etc. But it works. |
I tested on my Nextcloud 21.0.1 (docker), with a PNG and a SVG image for the logo in the theming app, and they both worked with my modified dark theme from the accessability app. |
Okay, let's run the static tests. I can only confirm that it is working like that, but since it looks more like a symptom-side fix, John (the app maintainer) should have a look whether there is a fix possible that grabs the issue by its root 🙂. |
Tests are saying no |
Psalm errors are unrelated to this PR. I triggered a rerun of the Lint checks, as they only show "GitHub Actions has encountered an internal error when running your job.". Not sure if probably the logs have been removed in the meantime, so we need to review faster? |
/rebase |
This is from a fork. @fuchsi3010 would you mind to rebase this commit onto the current master? |
hi, ad rebase: I'm a git noob, this is what i did:
then i made the changes (first time around i edited straight to fuchsi3010/server master branch)
i hope i did everything alright, thanks for your patience! :-) |
Signed-off-by: Daniel Josua Fuchs <daniel@f31.eu>
ok that didn't work as intended :-( made the changes again and pushed, seems ok now. edit: didn't sign the commit, jfc |
I think the fix is missing now for the I do rebase like that: git remote add upstream 'https://github.com/nextcloud/server.git'
git fetch upstream
git rebase upstream/master
git commit --amend --no-edit # Currently not sure if this is even required
git push -f origin HEAD But your way worked as well, while generally you should be able to skip merging thinks between |
Any way i try it (resetting cache, private mode, different browser, server restart) i can't get the logo to disappear, with dark & highcontrast enabled in the Accessability App. @MichaIng Thanks the detailed reply! I thought, maybe it would be easier if all of 'my' changes were on a single branch... but i guess rebasing scraps that anyway? i'll do a bit more reading-up on git when i get the time :-) |
This is strange, I wonder if this changed the behaviour that the combined high contrast and dark mode is not used anymore. On the other hand it should only have an effect on guests (no logged in user) and only sets Can you verify that when you select high contrast and dark mode, that the In my case it's |
Okay so the correct CSS is loaded, and the logo is still present? The variables should then actually still point to the invalid path with high contrast + dark theme 🤔. The guest fix is based on a browser/media feature |
ok, i checked both
Response Headers:
the inspector shows:
so i think it loads the correct one? as i said, my approach would be: this is a hacky fix, so i want to make as little changes as necessary. but if you want me to add the lines to |
Strange, then probably all three (or two) of these CSS are loaded now or they are merged in the first place. If it works, it works 🙂. Yes it is hacky somehow, but there are other such hacky things in these stylesheets. It is generally not clean that these accessibility themes are treated as themes but are in fact no complete themes. Internally the variables are set as if all required theme files were present, but they are not. Best would be a native way to have the variables changed only for shipped files and else fall back to core assets automatically. |
Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
hack-y (?) fix for #26578
fixed the relative path to the img directory in the accessability .scss files.
i'm not sure if this is the best way to fix this, please refer to the discussion at the issue.
I tested the fix with the dark theme on my nextcloud instance running Nextcloud 21.0.1 on docker.
I did not test with the other themes.