Skip to content
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

🔧 Swap light/dark theme button icon #3246

Merged
merged 3 commits into from
Oct 7, 2021
Merged

Conversation

eddsalkield
Copy link
Contributor

Just a very minor PR for the FastAPI docs that swaps the light/dark theme icons around. Currently the dark mode icon has the bulb filled (on) in the dark theme, and outlined (off) in the light theme.

Although not particularly important, most UI elements display the current state of affairs, rather than represent what will change when activated - for example, buttons are depressed when selected, not depressed prior to selection. This PR simply aims to make the UX more consistent.

@eddsalkield eddsalkield changed the title 📝 Swap light/dark theme icon Swap light/dark theme icon May 18, 2021
Copy link

@frinzekt frinzekt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I came here to look for this as well

@tiangolo tiangolo changed the title Swap light/dark theme icon 🔧 Swap light/dark theme button icon Oct 7, 2021
@tiangolo
Copy link
Member

tiangolo commented Oct 7, 2021

Nice, thanks @eddsalkield! And thanks for taking the time to explain the argument. 🤓 🚀

@codecov
Copy link

codecov bot commented Oct 7, 2021

Codecov Report

Merging #3246 (05c134d) into master (5551e72) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #3246   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          409       409           
  Lines        10264     10264           
=========================================
  Hits         10264     10264           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5551e72...05c134d. Read the comment docs.

@tiangolo tiangolo enabled auto-merge (squash) October 7, 2021 13:24
@tiangolo tiangolo disabled auto-merge October 7, 2021 13:25
@tiangolo tiangolo merged commit c29aa0b into fastapi:master Oct 7, 2021
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.

3 participants