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

Enhanced Hooks with Outside Click Handling and Dark Mode Detection #654

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

adarsh-jha-dev
Copy link
Contributor

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Feature

  • Why was this change needed? (You can also link to an open issue here)

  • useOutsideAlerter: This change was needed to enhance the useOutsideAlerter hook by adding the ability to handle clicks outside a specified ref element and optionally handle the 'Escape' key press. This addition allows for more robust handling of click events in various components, such as modals and popovers.

  • useMediaQuery: The change was also necessary to expand the useMediaQuery hook's functionality. It now includes the detection of dark mode using the prefers-color-scheme: dark media query. This update provides a more comprehensive way to adapt UI elements to the user's system-wide preferences.

  • Other information:
    No additional information is required for this change.

@vercel
Copy link

vercel bot commented Oct 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-gpt ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2023 7:30pm
nextra-docsgpt ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2023 7:30pm

@vercel
Copy link

vercel bot commented Oct 20, 2023

@adarsh-jha-dev is attempting to deploy a commit to the Arc53 Team on Vercel.

A member of the Team first needs to authorize it.

@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

Merging #654 (78b8d3e) into main (2f6213c) will not change coverage.
Report is 46 commits behind head on main.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #654   +/-   ##
=======================================
  Coverage   18.23%   18.23%           
=======================================
  Files          59       59           
  Lines        2731     2731           
=======================================
  Hits          498      498           
  Misses       2233     2233           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dartpain
Copy link
Contributor

Thank you!

@dartpain dartpain merged commit 0821d7a into arc53:main Oct 23, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants