Skip to content

✏️ Fix tooltips for light/dark theme toggler in docs - #9588

Merged
tiangolo merged 1 commit into
fastapi:masterfrom
pankaj1707k:master
Jun 22, 2023
Merged

tiangolo merged 1 commit into
fastapi:masterfrom
pankaj1707k:master

Conversation

@pankaj1707k

Copy link
Copy Markdown
Contributor

This is a minor fix πŸ˜…

When already in dark mode, hovering over the switcher shows "Switch to dark mode" in the tool-tip. Similarly, it shows "Switch to light mode" when its already in light mode.

I have fixed this by swapping the tool-tip texts in docs/en/mkdocs.yml.

PS: Please clarify if this needs to be done for every language separately or is it sourced from the en directory itself πŸ˜…

@github-actions

Copy link
Copy Markdown
Contributor

πŸ“ Docs preview for commit 6ca3c5d at: https://6474fe11c137bd45d7d893ca--fastapi.netlify.app

@tiangolo

Copy link
Copy Markdown
Member

Yep, good catch, thanks! πŸš€

@tiangolo
tiangolo merged commit d82700c into fastapi:master Jun 22, 2023
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.

2 participants