Skip to content

docs: change default <story> language to html#4798

Merged
mimarz merged 5 commits intomainfrom
docs-default-story-lang
Apr 28, 2026
Merged

docs: change default <story> language to html#4798
mimarz merged 5 commits intomainfrom
docs-default-story-lang

Conversation

@mimarz
Copy link
Copy Markdown
Collaborator

@mimarz mimarz commented Apr 27, 2026

Now that we are going web-first it makes sense that the default language for <story> is html.
This will also help us reduce having to set langauge='html' on overview and a11y pages.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 27, 2026

⚠️ No Changeset found

Latest commit: c94f24d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Copy Markdown
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

Updates the documentation rendering so <Story> defaults to showing HTML output (web-first), reducing the need to manually specify language="html" across MDX pages.

Changes:

  • Set the MDX <Story> wrapper component to default language to html and forward it to LiveComponent.
  • Remove redundant language="html" usages from several MDX docs.
  • Explicitly set language="react" for React-focused Dropdown examples that should still default to React.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
apps/www/app/content/components/table/no/code.mdx Drops explicit language="html" for a Story example.
apps/www/app/content/components/dropdown/no/overview.mdx Drops explicit language="html" from the preview Story.
apps/www/app/content/components/dropdown/no/code.mdx Drops explicit language="html" from the preview Story.
apps/www/app/content/components/dropdown/en/code.mdx Removes language="html" from preview and sets language="react" for React sections.
apps/www/app/_components/mdx-components/mdx-components.tsx Changes <Story> default language to html and forwards language to LiveComponent.

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

Comment thread apps/www/app/content/components/table/no/code.mdx Outdated
Comment thread apps/www/app/content/components/dropdown/no/overview.mdx Outdated
Comment thread apps/www/app/content/components/dropdown/no/code.mdx Outdated
Comment on lines +60 to +68
<Story story="WithoutTrigger" language="react"/>

### Controlled

If you submit `open`, then you use `Dropdown` controlled. You can use `onClose` to get notified when `Dropdown` wants to close.

Note that we do not use `onClick` on the trigger, the dropdown handles this internally and sends to `onOpen` and `onClose`.

<Story story="ControlledEn" />
<Story story="ControlledEn" language="react"/>
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

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

These Story tags use language="react"/> without a space before the self-closing "/>". Please format them consistently with the rest of the file as ... language="react" /> (or run the formatter) to avoid inconsistent markup.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 27, 2026

Preview deployments for this pull request:

www - 27. Apr 2026 - 16:10

mimarz and others added 3 commits April 27, 2026 15:58
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mimarz mimarz merged commit e8d1ecd into main Apr 28, 2026
7 checks passed
@mimarz mimarz deleted the docs-default-story-lang branch April 28, 2026 06:33
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.

3 participants