docs: add code examples for Progress Circular, Progress Linear, Radio#752
Open
fateeand wants to merge 4 commits into
Open
docs: add code examples for Progress Circular, Progress Linear, Radio#752fateeand wants to merge 4 commits into
fateeand wants to merge 4 commits into
Conversation
fateeand
requested review from
TerranceKhumalo-absa,
korel-san and
lukasmatta
as code owners
July 17, 2026 10:09
Contributor
Coverage report for library
Test suite run success2386 tests passing in 76 suites. Report generated by 🧪jest coverage report action from ecd90ad |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds live, copyable HTML/TS code examples to the Composition documentation pages for Progress Circular, Progress Linear, and Radio, by wiring each page to the shared CodeExampleComponent and introducing per-page *.examples.ts sources.
Changes:
- Added new
*.examples.tsfiles that provide example HTML/TS strings for each component page. - Wrapped existing in-page demos with
<app-code-example>to show preview + code tabs. - Cleaned up Radio page layout styles to match the new structure.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| projects/composition/src/app/pages/radio-page/radio-page.examples.ts | Adds Radio code example definitions (HTML/TS strings) consumed by the docs page. |
| projects/composition/src/app/pages/radio-page/radio-page.component.ts | Imports CodeExampleComponent and exposes examples for template bindings. |
| projects/composition/src/app/pages/radio-page/radio-page.component.html | Wraps Radio demos with <app-code-example> and binds to examples.*. |
| projects/composition/src/app/pages/radio-page/radio-page.component.scss | Removes obsolete wrapper styling after template restructuring. |
| projects/composition/src/app/pages/progress-linear-page/progress-linear-page.examples.ts | Adds Progress Linear example HTML string(s). |
| projects/composition/src/app/pages/progress-linear-page/progress-linear-page.component.ts | Imports CodeExampleComponent and exposes examples. |
| projects/composition/src/app/pages/progress-linear-page/progress-linear-page.component.html | Wraps Progress Linear demo content with <app-code-example>. |
| projects/composition/src/app/pages/progress-circular-page/progress-circular-page.examples.ts | Adds Progress Circular example HTML string(s). |
| projects/composition/src/app/pages/progress-circular-page/progress-circular-page.component.ts | Imports CodeExampleComponent and exposes examples. |
| projects/composition/src/app/pages/progress-circular-page/progress-circular-page.component.html | Wraps Progress Circular demo content with <app-code-example>. |
Contributor
Playwright test resultsDetails
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds live code examples to the Progress Circular, Progress Linear and Radio components' documentation pages.
Closes #732
Closes #733
Closes #734