Skip to content

Cherry-pick Blazor snippet updates and Razor highlighting fix to master - #1062

Open
dkamburov wants to merge 2 commits into
masterfrom
dkamburov/cherry-blazor-updates
Open

dkamburov wants to merge 2 commits into
masterfrom
dkamburov/cherry-blazor-updates

Conversation

@dkamburov

Copy link
Copy Markdown
Contributor

Cherry-picks two Blazor docs changes to master. Both are already merged in vnext.

  • docs(blazor): align snippets with the updated samples #1019 — Align Blazor snippets with the updated samples (80fbd15c0c)

    • Size now changes through the --ig-size CSS variable instead of the removed Size / SizableComponentSize API, in List, Navigation Drawer, Date Range Picker, Icon Button and grid sorting.
    • Snippets use the current Blazor patterns:
      • @bind-Value on Radio Group and Combo.
      • The Chip Remove event in C# instead of a JavaScript RemoveScript handler.
      • IgbCheckboxChangeEventArgs for the switch handler.
    • Includes the matching JP topics.
  • fix(highlighting): color Razor component tags as components #1014 — Color Razor component tags as components (dc629230d8)

    • Adds a grammar injection in src/integration.ts, so tags like <IgbGrid> in Razor code blocks are highlighted as components instead of errors.
    • The injection doesn't apply inside strings, expressions or @code blocks.
    • Uses @if in the grid filtering image samples (EN and JP).

#989 (Blazor getting started) is already on master and isn't part of this PR.

Testing

  • Ran the Blazor docs locally (npm run xplat:dev:blazor) and checked that the site starts and pages load.

🤖 Generated with Claude Code

damyanpetev and others added 2 commits November 12, 2026 18:23
docs(blazor): align snippets with the updated samples

(cherry picked from commit 80fbd15)
* fix(highlighting): color Razor component tags as types, not errors

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(grids): add the missing space in the filtering img *ngIf samples

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(highlighting): scope Razor component tags with a grammar injection

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(grids): use @if in the filtering img samples

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(highlighting): keep the Razor component injection out of strings, expressions and code blocks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit dc62923)
@dkamburov
dkamburov requested a review from skrustev November 12, 2026 16:29
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.

2 participants