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

✨ feat(theme-switcher): add theme reset button #198

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

welpo
Copy link
Owner

@welpo welpo commented Oct 5, 2023

Description

This PR introduces a Theme Resetter button that allows users to revert their theme back to the default Operating System setting.

Resolves #175.

Key Features

  • Theme Resetter Button: A new button is introduced next to the theme switcher.
  • Conditional Visibility: The resetter button only becomes visible when the user hovers over the theme switcher and if they have previously toggled the theme.
  • Accessibility: The resetter button becomes interactive after toggling the theme switcher.

Screenshot

menu with a visible "revert to OS default" button next to the theme switcher

@welpo welpo added the enhancement New feature or request label Oct 5, 2023
@welpo welpo merged commit afbf401 into main Oct 5, 2023
1 check passed
@welpo welpo deleted the feature/theme-reset-button branch October 5, 2023 23:36
Smtbook pushed a commit to Smtbook/zola-theme-tabi that referenced this pull request Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Theme switcher: Add button to return to OS settings
1 participant