Skip to content

Docs: fix nested kbd markup in Reboot example#42277

Closed
monsonego wants to merge 1 commit intotwbs:mainfrom
monsonego:docs/fix-nested-kbd-example
Closed

Docs: fix nested kbd markup in Reboot example#42277
monsonego wants to merge 1 commit intotwbs:mainfrom
monsonego:docs/fix-nested-kbd-example

Conversation

@monsonego
Copy link
Copy Markdown

@monsonego monsonego commented Apr 5, 2026

Description

  • replace the nested <kbd> markup in the Reboot keyboard input example
  • render Ctrl and , as separate keyboard entries joined by plain text

Motivation & Context

Issue #38000 points out that the current example marks Ctrl + , as one combined keyboard key because the markup nests multiple <kbd> elements inside another <kbd>.

This change keeps the example visually the same while making the markup semantically correct and easier to understand.

Type of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would change existing functionality)

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project (using npm run lint)
  • My change introduces changes to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Live previews

Validation

  • ran npm run docs-prettier-check
  • reviewed the rendered example source in site/src/content/docs/content/reboot.mdx to confirm the shortcut now uses separate <kbd> elements
  • confirmed the Netlify deploy preview was created successfully
  • not run the full docs build locally in this environment

Related issues

Closes #38000

@mdo mdo added the docs label Apr 5, 2026
@mdo mdo changed the base branch from main to v6-dev April 7, 2026 21:05
@mdo mdo requested review from a team as code owners April 7, 2026 21:05
@mdo mdo changed the base branch from v6-dev to main April 7, 2026 21:05
mdo added a commit that referenced this pull request Apr 7, 2026
@mdo
Copy link
Copy Markdown
Member

mdo commented Apr 7, 2026

Pushed a fix to v6-dev.

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

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

Nested <kbd>s in docs

3 participants