Repository navigation
Fix: Improve footer theme toggle contrast - #333
epixjayant wants to merge 6 commits into
Conversation
👷 Deploy request for opensciencelabsweb pending review.Visit the deploys page to approve it
|
|
@xmnlab can you please merge it after reviewing the changes. |
|
thanks for the help @epixjayant thanks |
|
Sure, I’ll restore the original quotation-mark style and keep only the changes required for this issue. I’ll update the PR shortly. @xmnlab it happened due to auto-formater. New to this org! , will become familier with our org styles and conventions soon ! :) |
|
Were you able to run it locally? |
|
@EverVino yes, and got these result |
|
Could you check if there are new changes after running the pre-commit? |
|
If not is working check the github actions and run locally the commands you see there related with linter |
thanks @EverVino |
|
it is not working due to nodenv, i tried to update nodenv and it worked locally, but here i'm unable to change workflow/main.yaml we need to add before running linter test, because it uses older version of node; |
|
Yes, it is a problem of nodeenv which is required by pre-commit. you should update it via poetry @xmnlab I found that nodeenv requires this update but I'm not sure if you want it in this PR because the pre-commit is modifying many files and raises errors in old and broken urls (showed below) pre-commit run --all-files
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check json...............................................................Passed
check toml...............................................................Passed
check xml................................................................Passed
check builtin type constructor use.......................................Passed
check for case conflicts.................................................Passed
check docstring is first.................................................Passed
detect private key.......................................................Passed
prettier.................................................................Passed
mkdocs-build.............................................................Passed
linkcheckmd..............................................................Failed
- hook id: linkcheckmd
- exit code: 1
Errors flagged for the following URLs:
('index.md', 'https://github.com/arxlang/astx/blob/main/docs/installation.md', 503)
('index.md', 'https://sugar-org.github.io/sugar/', 404)
('index.md', 'https://github.com/arxlang/astx/blob/main/docs/tutorials/functions.ipynb', 503)
('index.md', 'https://github.com/osl-pocs/fqlearn/blob/main/src/fqlearn/ThreeComponent.py', 503)
('index-en.md', 'https://github.com/OpenScienceLabs/grant-proposals/blob/96263f736e7f36eb22a3dd1baa16376fd1782e98/psf_proposal.md', 503)
('index.md', 'https://github.com/OpenScienceLabs/grant-proposals/blob/96263f736e7f36eb22a3dd1baa16376fd1782e98/psf_proposal.md', 503)
('index.md', 'https://github.com/osl-pocs/fqlearn/blob/main/tests/test_three_component.py', 503)
('index-en.md', 'https://github.com/osl-incubator/scicookie/blob/main/docs/guide.md', 503)
check-internal-links.....................................................Passed
ruff-format..............................................................Passed
ruff-linter..............................................................Passed
The modified files will be @xmnlab will be good to do this changes in this PR? |
|
thanks @EverVino for checking this problem. our pre commit also checks if the links used in the content are still working. because i made many changes in the osl webpage and other projects these links is now broken. if the issue is just about the links, it is fine to merge it. I need to see the right way to handle the problems with the links |
|
thanks @EverVino , how should i move further? |
|
As @xmnlab mentioned, If the issues is only about links (check my comment on pre-commit) the PR will be merged. |


Summary
Fixes #315 by improving the footer theme toggle’s visual contrast in light and dark modes.
Changes
Improved toggle track and thumb contrast.
Made the toggle state more distinguishable.
Added theme-aware footer logo switching.
Added white PNG and SVG logo assets from the official OSL branding repository.
Screenshots

Issue Recreated:
After change:
Light Mode
Dark Mode
Testing
[✓] Documentation build successful.
[ ✓] Light and dark modes verified.
[✓ ] Theme switching and persistence verified [ light mode, Dark mode, Refresh ].
Closes #315