Skip to content
This repository was archived by the owner on Dec 26, 2025. It is now read-only.
This repository was archived by the owner on Dec 26, 2025. It is now read-only.

[Bug] Modal shown on the top of root component (using TailwindCSS) #596

Description

@andrewfandy

So I have Blazor WebAssembly project and have TailwindCSS installed on it,

I followed all documentations:

  1. I configure App.razor
<CascadingAuthenticationState>
   <CascadingBlazoredModal>
      <Route....>

      </Route>
   </CascadingBlazoredModal>
<CascadingAuthenticationState>
  1. Configure: index.html : <link rel="stylesheet" href="_content/Blazored.Modal/blazored-modal.css" />

The issue is, when component hit ShowModal:

    private void ShowModal(int reportId)
    {
        var parameters = new ModalParameters();
        parameters.Add(nameof(ReportedCertificateModal.ReportId), reportId);

        var options = new ModalOptions
        {
            Position = ModalPosition.Middle,
            Size = ModalSize.Large,
            Class = "w-1/2 border border-black shadow-lg",
        };

        ModalService.Show<ReportedCertificateModal>(
            parameters: parameters,
            options: options
        );
    }

The modal component shown on top of navbar

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingTriageIssue needs to be triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions