Sw-modal not getting closed even after clicking on x button

Hi,
I am trying to use sw-modal component but facing issue with specifying its properties, not able to close the modal once it is opened.

below is the code :

<sw-modal
	  class="test__modal"
	  size="200px"
	  title="modal title"
      > Hello this is modal </sw-modal>

Please let me know if I need to add anything here or missing something.

Thank you in advance!

If you open the browser console is there an error?

If you remove the size attribute, can you then close the modal?

There is no error, tried with firefox and chrome.
Removing size did not help.