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

Add Blur Effect Option to Modal Background #11

Merged
merged 3 commits into from
Oct 15, 2024
Merged

Conversation

lucasferreiralimax
Copy link
Member

This pull request adds an optional blur effect to the modal background in the UpWindowAngularComponent. The blur effect is controlled via a new @Input() property blur, which, when set to true, applies a subtle background blur to the modal's overlay, enhancing the visual appearance.

Changes Implemented

  1. New Input Property:

    • Added a new input property: blur (boolean), defaulting to false. This allows users of the modal component to enable or disable the blur effect on the background overlay.
  2. CSS Changes:

    • The overlay class has been updated to include a blur modifier, which applies a backdrop-filter: blur(6px) effect when active.
  3. HTML Updates:

    • The modal's div structure now includes a conditional blur class binding to control when the blur effect is applied.
  4. TypeScript Logic:

    • The getClass() method now includes logic to conditionally add the blur class based on the blur input.

Testing

  • Tested the blur effect on various screen sizes and browsers to ensure proper performance and rendering.
  • Verified that the blur effect does not interfere with modal functionality such as focus trapping or keyboard navigation.
  • Ensured the modal works as expected with or without the blur effect based on the input value.

@lucasferreiralimax lucasferreiralimax self-assigned this Oct 15, 2024
@lucasferreiralimax lucasferreiralimax linked an issue Oct 15, 2024 that may be closed by this pull request
Copy link

github-actions bot commented Oct 15, 2024

Visit the preview URL for this PR (updated for commit 0bcd787):

https://up-window-angular--pr11-blur-feature-hj0al1j6.web.app

(expires Tue, 22 Oct 2024 05:20:25 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 7822e0d6e40bbbcb5ceaa0eda2c38488d7b613f8

@lucasferreiralimax lucasferreiralimax merged commit c297548 into master Oct 15, 2024
1 check passed
@lucasferreiralimax lucasferreiralimax deleted the blur-feature branch October 15, 2024 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Add Blur Effect to Modal Background
1 participant