-
Notifications
You must be signed in to change notification settings - Fork 523
feat(addon-mobile): add support for required option in sheet dialog #11327
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
base: main
Are you sure you want to change the base?
feat(addon-mobile): add support for required option in sheet dialog #11327
Conversation
Failed tests ❌Before (main) ← Diff → After (local)(updated for commit 8ece0f9) |
c1331e0
to
b519384
Compare
View your CI Pipeline Execution ↗ for commit 8ece0f9
☁️ Nx Cloud last updated this comment at |
BundleMonFiles updated (1)
Unchanged files (4)
Total files change -90B -0.01% Groups updated (1)
Final result: ✅ View report in BundleMon website ➡️ |
projects/addon-mobile/components/sheet-dialog/sheet-dialog.component.ts
Outdated
Show resolved
Hide resolved
1d35e52
to
b8d1ee3
Compare
> | ||
<p [style.flex-grow]="1"> | ||
Karl Gambolputty de von | ||
Ausfern-schplenden-schlitter-crasscrenbon-fried-digger-dingle-dangle-dongle-dungle-burstein-von-knacker-thrasher-apple-banger-horowitz-ticolensic-grander-knotty-spelltinkle-grandlich-grumblemeyer-spelterwasser-kurstlich-himbleeisen-bahnwagen-gutenabend-bitte-ein-nürnburger-bratwustle-gerspurten-mitzweimache-luber | ||
von Hautkopft of Ulm was the last-surviving relative of Johann Gambolputty de von. | ||
</p> | ||
<footer tuiFloatingContainer> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove tuiFloatingContainer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tuiFloatingContainer adds flex-direction: column
that breaks buttons view
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
returned tuiFloatingContainer
directive and added styles for buttons container
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine until there is only one button. When more buttons added they take most of screen space and when dialog gets dissmised with swipe down buttons stays on place while dialog content goes behind buttons.
2025-07-24.09.20.19.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When more buttons added they take most of screen space and when dialog gets dissmised with swipe down buttons stays on place while dialog content goes behind buttons.
When more buttons added
It's designed to using only with 2 buttons max)
when dialog gets dissmised with swipe down buttons stays on place while dialog content goes behind buttons.
That's because it's based on sticky + and bottom. Would you prefer that when the SheetDialog is rolled down, the button immediately goes down too?
In result, I don't think it's worth abandoning the tuiFloatingContainer in the SheetDialog example or changing it
@waterplea, what do you think about such a case? Should we rework the logic of the tuiFloatingContainer, so that when scrolling down from the moment when the SheetDialog itself begins to collapse, the button would also go down?
a66117d
to
8ece0f9
Compare
Description:
Closes #11082