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

Enable dark mode on-demand instead of body only #44

Merged
merged 1 commit into from
Dec 9, 2023
Merged

Conversation

noclat
Copy link
Member

@noclat noclat commented Dec 9, 2023

  • Add .dark or data-theme="dark" to .pka-input or any of its ancestor to activate dark mode on the input field.
  • Add panel: { className: 'dark' } option to activate dark mode on the suggestions panel.
  • Both input field and suggestions panel still switch to dark mode if <body class="dark"> or <body data-theme="dark"> is set.

@noclat noclat merged commit 5dd5ffc into main Dec 9, 2023
1 check passed
@noclat noclat deleted the feat/dark-on-demand branch December 9, 2023 16:25
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.

None yet

1 participant