Issue applying classes
I am trying to implement Blazored Modal into my Blazor server side app that uses Tailwind for CSS. However I am having trouble creating a form. No matter what CSS settings I've tried inside the component the modal itself remains the same size. I then tried applying a class to the modal itself seems to break. It becomes grayed out like the background and the elements inside cannot be interacted with.
No CSS
Any kind of CSS applied
Here is the code I am using, the specific CSS doesn't seem to matter. In this case the width does seem to change, but the modal element remains unclickable.
private void showModal()
{
var options = new ModalOptions()
{
Class = "w-1/4"
};
Modal.Show<ViewPatient>("Add Patient", options);
}
When you provide a value for the Class option, it replaces the default class, they are not added to it. This is why are losing all other styling. You will need to provide all styling you require, including specifying a z-index so the modal shows above the backdrop.
See #364 pending PR for some proposed updates to the docs clarifying this issue.
Hopfully the updates docs provided by #364 should clarify what is required when specificying a custom class.