Replies: 1 comment
-
|
Thanks! I think you'll find this topic of use #2061 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Firstly, thanks for this incredible library. It's a joy to use, both UX and DX!
I'm initially migrating our app to use
DialogTriggercomponents where appropriate.One widget we have is a calendar timeline, where clicking on the calendar entry opens this dialog:
Before using RAC, clicking off the dialog would close it, but pressing another Timeline event would open that one straight away.
I appreciate the reasons for preventing other buttons receving presses when the dialog is modal, but what I would like to do is ideally have just one modal that is triggered by any of the events, like how it works on Google Calendar.
I'm not sure if using
DialogTriggeris even the right approach.I've tried using
Tooltips, but that doesn't feel quite right from an a11y POV.I've tried using a combination of refs and using a single, controlled
Popoverbut that caused issues as I want thetriggerRefto reflect the event which has most recently been clicked.I don't really mind whether the
Dialogis the same, shared between each event (though animating its would be nice in that case!) but I would at least like to keep the existing behaviourExisting press behaviour:
Screen.Recording.2024-06-26.at.14.46.35.mov
Any wisdom would be appreciated 🙏
Beta Was this translation helpful? Give feedback.
All reactions