Skip to content

Docs: Clarify MudOverlay 'overlay view'#12355

Merged
danielchalmers merged 2 commits intoMudBlazor:devfrom
fuguiKz:docs/mudoverlay-clarify
Jan 14, 2026
Merged

Docs: Clarify MudOverlay 'overlay view'#12355
danielchalmers merged 2 commits intoMudBlazor:devfrom
fuguiKz:docs/mudoverlay-clarify

Conversation

@fuguiKz
Copy link
Contributor

@fuguiKz fuguiKz commented Dec 26, 2025

Fixes #7761.\n\nAdds a short clarification explaining what the term "overlay view" refers to in the context of MudOverlay being scaffolded via MudPopoverProvider (overlay instance = scrim + optional child content).

@mudbot mudbot bot changed the title docs: clarify MudOverlay 'overlay view' Docs: Clarify MudOverlay 'overlay view' Dec 26, 2025
@mudbot mudbot bot added the docs Updates/improvements to project documentation that do not affect core library logic label Dec 26, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a clarifying sentence to the MudOverlay documentation to explain what the term "overlay view" refers to when MudOverlay is scaffolded via MudPopoverProvider.

Key change:

  • Adds an explanatory sentence defining "overlay view" as an overlay instance (scrim plus optional child content) added to the stack

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<SectionHeader Title="Positioning">
<Description>
By default, <CodeInline>MudOverlay</CodeInline> is scaffolded into the <CodeInline>MudPopoverProvider</CodeInline>, producing a singleton stack where the most recently created overlay sits on top and stacks back down in reverse creation order as overlays close.
In this context, an "overlay view" simply means an overlay instance (the scrim plus optional child content) that gets added to the stack by a component such as a popover, menu, or select.
Copy link

Copilot AI Dec 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The phrase "scrim plus optional child content" is inconsistent with the documentation on lines 93 and 111, which states that overlays with ChildContent are excluded from scaffolding and rendered individually. If an overlay view is something that "gets added to the stack," it should not include child content, since overlays with child content are explicitly excluded from the scaffolding/stacking mechanism. Consider revising to "the scrim (without child content)" or clarifying that overlays with child content are handled separately.

Suggested change
In this context, an "overlay view" simply means an overlay instance (the scrim plus optional child content) that gets added to the stack by a component such as a popover, menu, or select.
In this context, an "overlay view" simply means an overlay instance (the scrim, without <CodeInline>ChildContent</CodeInline>) that gets added to the stack by a component such as a popover, menu, or select; overlays with <CodeInline>ChildContent</CodeInline> are rendered individually and are excluded from this scaffolded stack.

Copilot uses AI. Check for mistakes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@versile2 is this accurate?

@danielchalmers danielchalmers removed their request for review January 6, 2026 06:03
@fuguiKz
Copy link
Contributor Author

fuguiKz commented Jan 14, 2026

Good catch — you’re right that the previous wording was inconsistent with the “ChildContent overlays are excluded from scaffolding” notes.

I updated the sentence to clarify that an “overlay view” refers to a scaffolded overlay instance (the scrim/backdrop) added to the global overlay stack.

Pushed: fbf274a

Thanks!

@danielchalmers danielchalmers merged commit c9ae0c6 into MudBlazor:dev Jan 14, 2026
6 checks passed
@danielchalmers
Copy link
Member

Thank you!

This was referenced Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Updates/improvements to project documentation that do not affect core library logic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: Improve documentation for MudOverlay

3 participants