Public-Health-Scotland / Public-Health-Scotland/python-training
Add accessibility view
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
From @gsandrof66 - You can add dark theme feature for accessibility purposes. You have to modify your CSS file and add these lines of code at the button part. A CSS file has the capability to detect your browser windows theme preference. You have to add the rest of your CSS elements depending on the theme light/dark.
@media (prefers-color-scheme: dark) {
body {
background-color: #121212;
color: #ffffff;
}
}
@media (prefers-color-scheme: light) {
body {
background-color: #ffffff;
color: #000000;
}
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the project's CSS entry point and identify the button and other elements that need theme-specific styling. Apply the requested light and dark theme behavior, then verify the page in both browser color-scheme settings and confirm that text and controls remain readable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- accessibility, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100