Skip to content

docs(skills): Replace ng-deep with tokens in generate-from-image-design skill#17228

Open
georgianastasov wants to merge 2 commits intomasterfrom
ganastasov/fix-image-to-app-skill
Open

docs(skills): Replace ng-deep with tokens in generate-from-image-design skill#17228
georgianastasov wants to merge 2 commits intomasterfrom
ganastasov/fix-image-to-app-skill

Conversation

@georgianastasov
Copy link
Copy Markdown
Contributor

Description

Addresses feedback from @simeonoff on the igniteui-angular-generate-from-image-design skill.

Resolved:

SKILL.md Step 5c — Replaced "Apply the generated theme blocks inside ::ng-deep scoped to the component selector" with guidance to use @include tokens();, which works without ::ng-deep even with emulated ViewEncapsulation.

gotchas.md: Dark theme overrides for IgxGridComponent". Removed the ::ng-deep block targeting internal grid classes (.igx-grid__thead, .igx-grid__tr, etc.) and replaced it with the tokens mixin approach via create_component_theme.

Motivation / Context

These address the two related comments:

"Component theme mixins should NOT be used. When requesting a component theme from the MCP server the server returns a complete theme with @include tokens(); This should be sufficient even in Emulated view encapsulation scenarios." - #17181 (comment)

"Also the ::ng-deep should not be needed when using the tokens mixin. Not to mention that component-specific mixins have been deprecated for a long time now." - #17181 (comment)

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
  • Skills/Agents

Component(s) / Area(s) Affected:

Skills

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Automated e2e tests

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • 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 ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them
  • Accessibility (ARIA, keyboard navigation, focus management) has been verified

Copilot AI review requested due to automatic review settings April 23, 2026 09:05
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 igniteui-angular-generate-from-image-design skill documentation to steer users away from ::ng-deep and toward applying component theme overrides via the tokens mixin, aligning the guidance with current Ignite UI theming recommendations.

Changes:

  • Updated Step 5c in the skill to instruct applying component themes using @include tokens(<theme-name>); instead of ::ng-deep.
  • Reworked the IgxGridComponent dark-theme “gotcha” to remove internal-class overrides and reference the create_component_theme + tokens approach.

Reviewed changes

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

File Description
skills/igniteui-angular-generate-from-image-design/references/gotchas.md Replaces ::ng-deep/internal-class grid overrides with a tokens-based theming note/snippet.
skills/igniteui-angular-generate-from-image-design/SKILL.md Updates Step 5c guidance to apply generated component themes via tokens rather than ::ng-deep.

Comment thread skills/igniteui-angular-generate-from-image-design/SKILL.md
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.

3 participants