microsoft / fast

The adaptive interface system for modern web experiences.
https://www.fast.design
Other
9.25k stars 590 forks source link

Fix for #6837 #6838

Closed oneolddev closed 12 months ago

oneolddev commented 12 months ago

Proposed fix for #6837.

Pull Request

📖 Description

It corrects the issue where a modal dialog is dismissable when it should not be. It corrects the reversed behavior of the modal parameter to match expectations as per MDN.

dialog.template.ts is changed.

🎫 Issues

6837

👩‍💻 Reviewer Notes

The styling of the overlay is assumed to be the same for modal and non-modal dialogs. The current implementation does create an overlay div when modal is set to true.

📑 Test Plan

✅ Checklist

General

Component-specific

⏭ Next Steps

N/A

oneolddev commented 12 months ago

Closing this PR.

I've done some further research based on the comments by @chrisdholt. The current implementation's behavior is consistent with the MDN. This change could cause issues for others who have already taken this behavior in account in their current applications.