Skip to content

docs(Modal): remove the confusing "Show CloseButton" section - #3056

Merged
mfal merged 3 commits into
mainfrom
claude/modal-close-button-docs-be64eb
Sep 1, 2026
Merged

docs(Modal): remove the confusing "Show CloseButton" section#3056
mfal merged 3 commits into
mainfrom
claude/modal-close-button-docs-be64eb

Conversation

@Jan-Eimertenbrink

Copy link
Copy Markdown
Member

What

Removes the "Show CloseButton" section (heading, description, and code example) from the Modal docs page.

Why

We received feedback that the section is confusing. It framed showCloseButton as an override for "exceptional cases", but we never defined a concrete exception and there is no good rule for when to use it. The automatic toggle — close button vs. ActionGroup — is handled by Flow on its own and does not need to be documented separately.

The showCloseButton property remains documented in the auto-generated Properties table. No component or API change.

Changes

  • apps/docs/src/content/components/overlays/modal/index.mdx — drop the section
  • apps/docs/src/content/components/overlays/modal/examples/showCloseButton.tsx — delete the example

Closes #3055

🤖 Generated with Claude Code

The section documented that `showCloseButton` overrides the automatic
hiding of the header close button "in exceptional cases", but never named
a concrete case, and there is no rule for when to use it. Flow already
toggles the button automatically based on whether the modal has an
ActionGroup — that behaviour needs no separate documentation. The
`showCloseButton` property remains listed in the Properties table.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Jan-Eimertenbrink
Jan-Eimertenbrink requested a review from a team September 1, 2026 13:07
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Coverage Report for ./packages/components/

Status Category Percentage Covered / Total
🔵 Lines 78.69% 746 / 948
🔵 Statements 78.57% 763 / 971
🔵 Functions 80.09% 165 / 206
🔵 Branches 70.33% 377 / 536
File CoverageNo changed files found.
Generated in workflow #6513 for commit bca9970 by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🚀 Preview Deployment

Preview environments are ready:

Type URL
docs pr-3056.docs.review.flow-components.de
storybook pr-3056.storybook.review.flow-components.de

Images:

  • docs: ghcr.io/mittwald/flow/docs:pr-3056
  • storybook: ghcr.io/mittwald/flow/storybook:pr-3056

@mfal
mfal enabled auto-merge (squash) September 1, 2026 14:44
@mfal
mfal merged commit 84b71c3 into main Sep 1, 2026
19 of 21 checks passed
@mfal
mfal deleted the claude/modal-close-button-docs-be64eb branch September 1, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(Modal): remove the confusing "Show CloseButton" section

3 participants