Skip to content

docs(skills): fix textarea, chip, card, action strip, exporter and token-lookup guidance - #571

Draft
ivanvpetrov wants to merge 6 commits into
masterfrom
ipetrov/skills-570
Draft

ivanvpetrov wants to merge 6 commits into
masterfrom
ipetrov/skills-570

Conversation

@ivanvpetrov

@ivanvpetrov ivanvpetrov commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Closes #570

Description

Fixes the skill errors reported in #570, plus related errors found while testing the fixes. The guidance targets IgniteUI.Blazor 26.2.x, the version on master. In 26.2 the full package depends on IgniteUI.Blazor.Lite, and the general components (textarea, chip, card, …) are Lite's types.

File Change
components/references/form-controls.md IgbTextarea does not derive from IgbInputBase, and its typing event is Input. InputOcurred exists on IgbInput only. Using the wrong name compiles without a warning, and the handler never runs. Also: the shared parameters (ReadOnly, MinLength/MaxLength are on both), and that the textarea's @bind-Value updates on blur.
components/references/data-display.md Chip: the snippet adds @bind-Selected and the IgbVoidEventArgs Remove signature. New notes cover Outlined styling (the Variant-colored border, selection adding only a check icon, the --ig-chip-outlined-* / --ig-chip-selected-outlined-* tokens), and that tokens alone don't outline a chip. Card: width set from .razor.css with ::deep instead of an inline style. igc-card carries no scope attribute, so a plain class rule never matches, and Width="350px" only renders a dead attribute.
grids/references/features.md Action strip: Edit and Delete show by default. Delete needs PrimaryKey, not RowEditable. Delete also removes the row from the bound List<T> but doesn't re-render the page (RowDeleted is an Action<T>). Edit uses row or cell editing, Add / Add Child need RowEditable, and AsMenuItems moves the buttons into a menu. Adds a delete-only snippet. Export: the menu defaults to Excel, CSV and PDF, so ExportPDF="false" is needed for Excel and CSV only. Export from code now goes through the element's export() via JS interop, because ExportGridAsync / ExportGrid fail ("target doesn't have prop: export", InvalidOperationException). The enum values are Excel / Csv / Pdf; the old snippet's CSV gave CS0117. Also notes what ExportStarted can't do from C#.
grids/references/editing.md With RowEditable="true", columns are editable without Editable (except the primary key). Editable="false" keeps one read-only.
grids/SKILL.md Adds PDF to the export wording.
theming/SKILL.md, theming/references/common-patterns.md The theme CSS holds no component tokens. They ship in the IgniteUI.Blazor.Lite package's igniteui-webcomponents.*.bundle.js, also for IgniteUI.Blazor projects. The skill now shows how to find the Lite version and grep that bundle, and that prefixes don't always match the tag (--ig-contained-button-*, --ig-input-group-*, --ig-linear-bar-*). Also: .razor.css needs the styles.css link, and a class set on an Igb* component needs ::deep.
generate-from-image-design/references/gotchas.md The same ::deep correction.

Motivation / Context

These errors came to light while agents generated apps from the skills alone. With the old text, generated code:

  • failed to compile (the exporter snippet);
  • compiled but silently did nothing (InputOcurred on the textarea, a plain .razor.css class rule on an Igb* component, ExportGridAsync);
  • or contradicted the skills' own rules (the inline style on the card).

The token-lookup advice pointed to files that contain none of the component tokens. The chip mismatch reported in #570 existed only in 26.1, where the full package had its own chip. In 26.2 it uses Lite's, so the snippet now gets clarifications instead of a package table.

Does not overlap #567 or #568: trial merges with master (which includes #568), with #567, and with both together are clean.

Type of Change (check all that apply):

  • Bug fix
  • New functionality
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (no functional changes)
  • Documentation
  • Demos
  • CI/CD
  • Tests
  • Changelog

Component(s) / Area(s) Affected:

Agent skills: igniteui-blazor-components (Textarea, Chip, Card), igniteui-blazor-grids (Action Strip, Toolbar Exporter, editing), igniteui-blazor-theming, igniteui-blazor-generate-from-image-design.

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Automated e2e tests
  1. Every item re-verified on 26.2.16-beta.0, side by side with 26.1.98 for the grid items. Real Blazor apps driven in headless Chrome over CDP, with all console output captured, covering:
    • textarea events;
    • chip Outlined, selection, Remove and token behaviour;
    • card widths for each CSS approach;
    • the action-strip matrix (defaults, PrimaryKey / RowEditable, Add on root rows, AsMenuItems, tree grid);
    • exporter menus, with real Excel / CSV / PDF downloads;
    • ExportGridAsync;
    • editing-column flags;
    • the token grep against the tokens the components read at runtime.
  2. Snippets: each new snippet was compiled verbatim (0 warnings) and run on the beta.
  3. Generation check: fresh agents with only the updated skills built a profile page (card, textarea counter, chips) and a products grid (delete-only row action, Excel/CSV-only export, an export button outside the toolbar). Every requirement worked.

Test Configuration:

  • .NET version: .NET 10 (SDK 10.0.401), net10.0
  • Packages: IgniteUI.Blazor.Trial 26.2.16-beta.0 (with its IgniteUI.Blazor.Lite 1.0.1 dependency); grid items also compared with 26.1.98
  • Hosting model: Blazor WebAssembly
  • Browser(s): Chrome (headless)
  • OS: Windows 11

Screenshots / Recordings

Before/after, captured on IgniteUI.Blazor.Trial 26.2.16-beta.0 (headless Chrome).

Textarea typing event (form-controls.md)
01-textarea-input-event

Chip on 26.2 (data-display.md)
02-chip

Card width without an inline style (data-display.md)
03-card-width

Action strip without row editing (features.md)
04-action-strip

Toolbar exporter (features.md)
05-exporter

Finding component token names without the MCP server (theming/SKILL.md)
06-theming-token-lookup

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code
  • This PR includes API docs for newly added methods/properties
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes behavioral changes and the feature specification has been updated with them
  • Accessibility (ARIA, keyboard navigation, focus management) has been verified

Follow-ups, not in this PR:

…ken-lookup guidance

- form-controls.md: IgbTextarea doesn't derive from IgbInputBase and fires
  Input (not InputOcurred); a wrong event name compiles silently; MaxLength
  is on both inputs
- data-display.md: chip snippet that compiles in Lite and the full package
  (parameterless Remove, @bind-Selected, ::part(base) outline) plus a
  package-difference table; card width from .razor.css with ::deep instead
  of an inline style
- features.md: action-strip defaults and what Delete/Edit/Add each need,
  delete-only strip, Delete mutates the bound list without re-rendering;
  exporter defaults to Excel/CSV/PDF, ExportPDF, JS-interop export
  (ExportGridAsync fails in 26.1.x), GridToolbarExporterType values
- editing.md: RowEditable makes non-key columns editable without Editable
- grids SKILL.md: mention PDF export
- theming SKILL.md / common-patterns.md: component tokens are not in the
  theme CSS; list them from the web-components bundle; .razor.css needs the
  styles.css link; ::deep is needed for a class set on an Igb* component
- gotchas.md: same ::deep correction

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the documentation-only updates to Blazor API and styling guidance.

No open issues 🎉

What changed in this PR

Updates the public agent skills to address the guidance errors reported in #570, helping generated Blazor apps use the correct APIs and styling patterns across Lite and full packages. This PR changes documentation only.

Changes:

  • Corrects textarea events, package-specific chip APIs, and scoped card styling.
  • Clarifies grid editing and action-strip requirements, export formats, and the JavaScript workaround for programmatic export.
  • Replaces incorrect token-lookup advice with bundle inspection and clarifies CSS-isolation requirements.
File Description
skills/​igniteui-blazor-theming/​SKILL.md Documents bundle-based token lookup and package-specific token differences.
skills/​igniteui-blazor-theming/​references/​common-patterns.md Clarifies token limitations, isolated stylesheet loading, and ::deep usage.
skills/​igniteui-blazor-grids/​SKILL.md Adds PDF export to the skill description and reference routing.
skills/​igniteui-blazor-grids/​references/​features.md Corrects exporter guidance and documents action-strip defaults and requirements.
skills/​igniteui-blazor-grids/​references/​editing.md Clarifies column editability defaults when row editing is enabled.
skills/​igniteui-blazor-generate-from-image-design/​references/​gotchas.md Corrects scoped CSS guidance for classes applied to components.
skills/​igniteui-blazor-components/​references/​form-controls.md Distinguishes input and textarea events and explains textarea binding timing.
skills/​igniteui-blazor-components/​references/​data-display.md Adds scoped card styling and cross-package chip examples.

Review effort: Balanced

@ivanvpetrov
ivanvpetrov marked this pull request as ready for review November 19, 2026 07:51
@ivanvpetrov
ivanvpetrov marked this pull request as draft November 19, 2026 08:47
ivanvpetrov and others added 2 commits November 24, 2026 16:54
- data-display.md: 26.2 uses IgniteUI.Blazor.Lite's chip in both packages;
  drop the Lite/full table and the ::part workaround, keep the Outlined
  snippet with @bind-Selected and IgbVoidEventArgs, document outlined and
  selected styling and the outlined tokens; card Width only renders a dead
  attribute
- features.md: exporter and editing-action defaults read true in C#;
  ExportGridAsync still fails (InvalidOperationException); the exporter
  args have no Cancel
- theming SKILL.md / common-patterns.md: component tokens ship in the
  IgniteUI.Blazor.Lite bundle, also for IgniteUI.Blazor; look up the Lite
  version first

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The export workaround omits a script-loading reference, so both C# methods invoke an undefined exportGrid unless readers add that missing step.

1 open issue

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The export workaround selects the first grid on the page, so exporting from a second grid uses the wrong data and filename instead of preserving the intended target.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

Medium severity Target the invoking grid in the export workaround

skills/​igniteui-blazor-grids/​references/​features.md:101

This replaces exporter-specific @ref access with a page-wide first match. On a page with two grids, invoking the second grid's export handler still exports the first grid's data and filename. Pass an exporter-specific selector or element reference from the C# handler and use it here, so the workaround preserves the intended export target.

1 resolved since last review

Review effort: Balanced

@ivanvpetrov

Copy link
Copy Markdown
Contributor Author

Addressed the "target the invoking grid" note: the export workaround now passes the grid's host ElementReference (exportGrid(host, type) → host.querySelector('igc-grid-toolbar-exporter')), so on a page with several grids each export targets its own grid. Verified on 26.2.16-beta.0 with two grids (customers.csv and orders.xlsx from their own grids).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Human assessment is needed because conflicting token-lookup guidance could direct grid styling to a bundle that lacks the required grid tokens.

No open issues 🎉

Review effort: Balanced

- Chip: tokens apply only without a Variant; with one, the variant rules win
  (including --ig-chip-selected-outlined-background), so style ::part(base).
  Theme differences: Fluent/Indigo fill a selected chip, Indigo's outlined
  chip has a light fill; an outlined Variant chip keeps the default text color.
- Input/Textarea: @bind-Value updates on commit for both; use InputOcurred /
  Input for live text.
- Export: Detail.Options and Detail.Grid are always null; hidden formats can
  still be exported from code; the helper throws without an exporter.
- Card: width behaviour in block vs flex containers.
- gotchas: ::deep igc-chip needs a wrapper element rendered by the view.

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skills: API mismatches in textarea, chip, action strip, exporter, theming token source and card guidance

2 participants