fundamental-ngx icon indicating copy to clipboard operation
fundamental-ngx copied to clipboard

feat(core): popover modal styling

Open alexhristov14 opened this issue 1 year ago • 3 comments

closes #12210 Styling for closeOnOutsideClick PR: https://github.com/SAP/fundamental-styles/pull/5595

alexhristov14 avatar Aug 26 '24 20:08 alexhristov14

Deploy Preview for fundamental-ngx ready!

Name Link
Latest commit d0820cea6a30d32ce31bf84d2ed6e0ecfa859dda
Latest deploy log https://app.netlify.com/sites/fundamental-ngx/deploys/66d7638f54ed120008b946ff
Deploy Preview https://deploy-preview-12324--fundamental-ngx.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Aug 26 '24 20:08 netlify[bot]

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

https://fundamental-ngx-gh--pr12324-feat-popover-modal-sxdepaa9.web.app

(expires Sat, 31 Aug 2024 15:12:15 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 41b993ee8e451bd7c6770b342ce142dc886eacff

github-actions[bot] avatar Aug 26 '24 20:08 github-actions[bot]

Screenshot 2024-08-28 at 9 31 40 AM

You only show the HTML file, need to show the TS file, too

InnaAtanasova avatar Aug 28 '24 13:08 InnaAtanasova

@alexhristov14 It seems that the popover close functionality is not working as expected. I tested it and found that pressing the ESC key or clicking outside the popover does not close it. Could you please look into this issue?

https://github.com/user-attachments/assets/2c4bdd0d-685d-4d0b-b1fe-f8bba2d05d2c

khotcholava avatar Sep 03 '24 11:09 khotcholava

@alexhristov14 It seems that the popover close functionality is not working as expected. I tested it and found that pressing the ESC key or clicking outside the popover does not close it. Could you please look into this issue?

Screen.Recording.2024-09-03.at.15.26.36.mov

I've tested it again now and it still works as intended. The closeOnOutsideClick property prevents users to close the popover when clicking outside of the body (when set to false) but it's still closable with ESC. As for the closeOnEscapeKey, it prevents users to close the popover body with ESC (when set to false). And the third example is a combination of both where neither clicking on the outside nor the ESC button closes the body. The only way to close it back it to click the popover yet again.

The default behaviour is that it closes in both cases: whenever clicked outside or the ESC button is pressed.

alexhristov14 avatar Sep 03 '24 13:09 alexhristov14

@alexhristov14 It seems that the popover close functionality is not working as expected. I tested it and found that pressing the ESC key or clicking outside the popover does not close it. Could you please look into this issue?

Screen.Recording.2024-09-03.at.15.26.36.mov

@khotcholava it's the naming of the button that makes the confusion. closeOnOutsideClick button opens a popover that is not supposed to close on outside click. Screenshot 2024-09-03 at 1 53 20 PM

As you can see the property is set to false. But I agree with you. The way we have it now is confusing . It makes more sense if the button was named something like "preventCloseOnOutsideClick" and same for the other examples. @alexhristov14

InnaAtanasova avatar Sep 03 '24 17:09 InnaAtanasova