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 Drawer Input Option to up-window-angular #27

Merged
merged 5 commits into from
Oct 17, 2024
Merged

Conversation

lucasferreiralimax
Copy link
Member

This PR introduces a new drawer input option to the up-window-angular component.
The drawer option allows users to render the window as a drawer that slides in from the side of the screen. The following updates have been made:

  • New Input: @Input() drawer: 'left' | 'right' | 'top' | 'bottom' = 'bottom'

    • When set to type, the window will behave as a drawer.
  • Updated example in the documentation to reflect the use of the drawer feature.

Example:

<up-window-angular
  [isOpen]="isWindowOpenExample"
  drawer="left"
  title="Drawer Example"
  subtitle="This is a drawer window."
>
  Drawer Example content!
</up-window-angular>

Additional Changes:

  • Updated unit tests to cover the drawer behavior.
  • Added styling and animations for sliding the drawer from different positions.

@lucasferreiralimax lucasferreiralimax self-assigned this Oct 17, 2024
@lucasferreiralimax lucasferreiralimax linked an issue Oct 17, 2024 that may be closed by this pull request
3 tasks
@lucasferreiralimax lucasferreiralimax merged commit 30afab2 into master Oct 17, 2024
1 check passed
Copy link

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

https://up-window-angular--pr27-drawer-7dhias8j.web.app

(expires Thu, 24 Oct 2024 22:57:17 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 7822e0d6e40bbbcb5ceaa0eda2c38488d7b613f8

@lucasferreiralimax lucasferreiralimax deleted the drawer branch October 17, 2024 23:55
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.

Implement Drawer Mode for UpWindowAngular Component
1 participant