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

Leave feedback modal exceeds screen height #1166

Closed
AllieMendes opened this issue Nov 6, 2023 · 16 comments
Closed

Leave feedback modal exceeds screen height #1166

AllieMendes opened this issue Nov 6, 2023 · 16 comments
Assignees
Labels
bug Something isn't working frontend ui

Comments

@AllieMendes
Copy link

Describe the bug
The modal for leaving feedback is too long and can exceed the window height, not allowing users to send their feedback or cancel the interaction through the button.

To Reproduce
Steps to reproduce the behavior:

  1. I clicked on "Leave Feedback".
  2. A modal opened and I couldn't see it all since it continued beyond my window height, with no way to scroll through it.

Expected behavior
I'd like to hear your thoughts!
Ideally, we want to have this more as a dropdown component on the page, which can be seen as we scroll through the page, but for now, it would be great to have a workaround.

Screenshots
image

Desktop

  • OS: iOS
  • Browser: Chrome
  • Version: 119
@AllieMendes AllieMendes added bug Something isn't working ui frontend labels Nov 6, 2023
@AllieMendes AllieMendes assigned mlabouardy and unassigned mlabouardy Nov 6, 2023
@gokuljs
Copy link
Contributor

gokuljs commented Nov 9, 2023

@mlabouardy can you please assign me this .

@Azanul
Copy link
Collaborator

Azanul commented Nov 9, 2023

There you go @gokuljs! Do drop in to our Discord server in case you have any questions or need help

@AllieMendes
Copy link
Author

Before tackling this, it would be great to discuss the solution, so I can support with the designs @gokuljs!

@gokuljs
Copy link
Contributor

gokuljs commented Nov 10, 2023

"I'm using a 16-inch Mac, and it works well. However, the issue arises when working with smaller screens. Here are a couple of workarounds I've thought of:

1: The best workaround, in my opinion, is to write the code in such a way that the modal takes up 80% of the screen's height.
This approach will make it look normal on larger screens, but on smaller screens, the entire modal will have an 80% height,
and it will become scrollable.

2: Another method I've considered is to shrink the height of the text area and make it scrollable. However, I don't think this is
a good idea because there is important content inside that users need to see."

@gokuljs
Copy link
Contributor

gokuljs commented Nov 10, 2023

for smaller screens
image
image

for bigger screens

image

@gokuljs
Copy link
Contributor

gokuljs commented Nov 10, 2023

if this workaround is good then i will create a pr for this @AllieMendes

@AllieMendes
Copy link
Author

Thank you for the suggestions @gokuljs!
Having the whole modal scrollable is not the best experience as the user loses context of the action.

I explored this in my designs — having a static part for context on the modal and a scrollable part for the content and actions.
image

Would it be too difficult to implement?

@gokuljs
Copy link
Contributor

gokuljs commented Nov 10, 2023

basically you only want subsection to be scrollable right ?. the header and subtext should always be at the top

@AllieMendes
Copy link
Author

basically you only want subsection to be scrollable right ?. the header and subtext should always be at the top

Yes, exactly (with a stroke in the middle to create the separation)

@gokuljs
Copy link
Contributor

gokuljs commented Nov 10, 2023

image i see one more issue there is no cross icon at the top

@gokuljs
Copy link
Contributor

gokuljs commented Nov 10, 2023

if you have the exisiting figma file for this please share that would be really helpfull.

@AllieMendes
Copy link
Author

We don't have a component on the Design System for the modal (the original design didn't use a modal at all) but I can invite you to Figma to see this screen exploration in particular — I would need your email for that

@gokuljs
Copy link
Contributor

gokuljs commented Nov 10, 2023

jsgokul123@gmail.com

@gokuljs
Copy link
Contributor

gokuljs commented Nov 10, 2023

image image

does this look good @AllieMendes

@AllieMendes
Copy link
Author

It's getting there!
The top margin should be the same for the scrollbar and the input field.
There should be a bigger margin between the scrollbar and the containers.

I've invited you to Figma, this design is isolated on the page Feedback Collection.

@gokuljs
Copy link
Contributor

gokuljs commented Nov 11, 2023

@AllieMendes this should be perfect right
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend ui
Projects
None yet
Development

No branches or pull requests

4 participants