Eurydia / project-phosphophyllite

A UI wrapper around GitHub API for issue aggregration powered by OctokitJS.
0 stars 0 forks source link

implement snackbar manual dismissal #18

Closed Eurydia closed 6 months ago

Eurydia commented 7 months ago

It would be nice for to implement an option for the snackbars to be manually dismissed. A small "dismiss" icon button could be a good stylistic choice to not overload the screen with too many actions.

However, the most natural way to dismiss a snackbar to swipe it away, but I have to idea how to implement such a feature at the moment. Alternatively, it might be enough to just lower the auto hide duration on the snackbar provider.

Eurydia commented 6 months ago

As of now, I think it is enough to reduce the duration of snack bar. There is an example available on the official website of Notistack. Adding a dismiss button on snack bars is the simplest approach, but it would make the screen too busy. The reasonable interaction would be swipe-to-dismiss interaction, which I have no idea how to implement just yet.

With that said, I will say that this issue is resolved with possible future improvement, so I will close this issue.