Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OEvgeny committed Nov 8, 2024
1 parent beaa4ea commit c386542
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/component/src/Styles/StyleSet/ModalDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ export default function createModalDialogStyleSet() {
border: 0
},

// Assume the content is being prepared, so we hide the whole dialog until content appears in the DOM.
// Use opacity to still be able to set focus on the first available control (close button).
'&:has(.webchat__modal-dialog__body:empty)': {
visibility: 'hidden'
opacity: 0
},

'& .webchat__modal-dialog__box': {
Expand Down

0 comments on commit c386542

Please sign in to comment.