[Bugfix] Bound CallReadiness screens to the boundaries of the container#2624
Conversation
CallWithChat bundle size is increased❗.
|
Calling bundle size is increased❗.
|
Chat bundle size is not changed.
|
|
Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot. |
| const [audioState, setAudioState] = useState<PermissionState | 'unsupported' | undefined>(undefined); | ||
| /* @conditional-compile-remove(call-readiness) */ | ||
| getDevicePermissionState(setVideoState, setAudioState); | ||
| const modalLayerHostId = useId('callReadinessModalLayerhost'); |
There was a problem hiding this comment.
We already have a composite-root level modal layer host id, can we use this instead so all modals, context menus etc. going forward all bind to the same root:
There was a problem hiding this comment.
Good idea, I confirmed with FluentUi modal examples that multiple modals use 1 (the same) root modal layer host.
I'll make the change now!
There was a problem hiding this comment.
Alright! Done, needed to play around with some transform in the modal but got it to work with the current layerhost.
Also removed mobileView only for that specific layerhost as I found that it was not needed during my testing with the PIP modal. (but needs to be removed for call readiness modal to render on desktop using that layerhost).
…lay' of https://github.com/Azure/communication-ui-library into elee/bugfix-call-readiness-permission-notification-overlay
|
Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot. |
|
Failed to pass the composite UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot. |
…lay' of https://github.com/Azure/communication-ui-library into elee/bugfix-call-readiness-permission-notification-overlay
|
Failed to pass the composite UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot. |

What
Use ModalClone and a Layerhost instead of FluentUi provided Modal.

Why
Modal takes up full width and height of body and not the container it's called within.

https://skype.visualstudio.com/SPOOL/_workitems/edit/3086034
How Tested
Locally on MacOS Safari
Process & policy checklist
Is this a breaking change?