Skip to content

Fix: Improve footer theme toggle contrast - #333

Open
epixjayant wants to merge 6 commits into
OpenScienceLabs:mainfrom
epixjayant:fix/footer-theme-toggle-contrast
Open

epixjayant wants to merge 6 commits into
OpenScienceLabs:mainfrom
epixjayant:fix/footer-theme-toggle-contrast

Conversation

@epixjayant

@epixjayant epixjayant commented Nov 22, 2026 •

Copy link
Copy Markdown

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:
image

After change:
Light Mode

image

Dark Mode

image

Testing

  • [✓] Documentation build successful.

  • [ ✓] Light and dark modes verified.

  • [✓ ] Theme switching and persistence verified [ light mode, Dark mode, Refresh ].

Closes #315

@netlify

netlify Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

👷 Deploy request for opensciencelabsweb pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 1f91112

@epixjayant

Copy link
Copy Markdown
Author

@xmnlab can you please merge it after reviewing the changes.

@xmnlab

xmnlab commented Nov 22, 2026

Copy link
Copy Markdown
Member

thanks for the help @epixjayant
could you revert back the changes of quotes ?

thanks

@epixjayant

epixjayant commented Nov 22, 2026 •

Copy link
Copy Markdown
Author

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 ! :)

@epixjayant

epixjayant commented Nov 22, 2026 •

Copy link
Copy Markdown
Author

mentor @xmnlab || mentor @EverVino , please help me to figure out why my build is failing?
Linter exit with code 3

image

@EverVino

Copy link
Copy Markdown
Contributor

Were you able to run it locally?
It is expected that you run some check before sending PR
after installing the dependencies run

pre-commit run --all-files --verbose

@epixjayant

Copy link
Copy Markdown
Author

@EverVino yes, and got these result
image

@EverVino

EverVino commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Could you check if there are new changes after running the pre-commit?
Is there is one commit the new changes and push to check again

@EverVino

Copy link
Copy Markdown
Contributor

If not is working check the github actions and run locally the commands you see there related with linter

@epixjayant

Copy link
Copy Markdown
Author

Could you check if there is a new changes after running the pre-commit? Is there is one commit the new changes and push to check again

thanks @EverVino

@epixjayant

epixjayant commented Nov 23, 2026 •

Copy link
Copy Markdown
Author

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
- name: Upgrade nodeenv
run: python -m pip install --upgrade nodeenv

before running linter test, because it uses older version of node;

@EverVino

Copy link
Copy Markdown
Contributor

Yes, it is a problem of nodeenv which is required by pre-commit. you should update it via poetry poetry update nodeenv

@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

git status
On branch fix/footer-theme-toggle-contrast
Your branch is up to date with 'origin/fix/footer-theme-toggle-contrast'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   bkp/opportunities/internships/oss/project-ideas/index.md
        modified:   pages/about/index.md
        modified:   pages/about/sponsorship/index.md
        modified:   pages/blog/console-based-representation-in-astx/index.md
        modified:   pages/blog/packaging-a-vs-code-extension-using-pnpm-and-vsce/index.md
        modified:   pages/consulting/index.md
        modified:   pages/learning/index.md
        modified:   pages/opportunities/gsoc/project-ideas/index.md
        modified:   pages/projects/alliance/index.md
        modified:   pages/projects/index.md
        modified:   pages/projects/list/index.md
        modified:   poetry.lock
        modified:   theme/images/partners/scistitch.svg

no changes added to commit (use "git add" and/or "git commit -a")

@xmnlab will be good to do this changes in this PR?

@xmnlab

xmnlab commented Nov 23, 2026

Copy link
Copy Markdown
Member

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

@epixjayant

epixjayant commented Nov 23, 2026 •

Copy link
Copy Markdown
Author

thanks @EverVino ,
i have updated it locally, but i think the problem is in workflow, do i need to add a command in workflows/main.yaml file in the same PR, or should i do in another issue?

how should i move further?

@EverVino

Copy link
Copy Markdown
Contributor

As @xmnlab mentioned, If the issues is only about links (check my comment on pre-commit) the PR will be merged.
The pre-commit will make some changes in the other files I guess It is OK, make sure you update via poetry, that means there should be changes in the poetry.lock file as well, this poetry.lock is used by github actions to run the CI.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Theme toggle has insufficient contrast in dark and light modes

3 participants