Commit a2fc78d
committed
refactor(docs): replace @ably/ui/core/Icon with a local Icon component
docs-native Icon (DX-1128), removing the @ably/ui/core/Icon dependency:
- icon-gui-* names resolve to @heroicons/react (exactly what @ably/ui did
internally, so the glyphs are identical) — added as a direct dependency.
- The remaining 46 icons docs actually uses (custom gui, product, social and
tech/SDK-language logos) are vendored from @ably/ui as self-contained SVG
components under src/components/Icon/glyphs/ with a generated registry.
- Unknown names render nothing, matching @ably/ui's behaviour for an
unrecognised icon (covers cpp/dart/etc. that have no upstream glyph).
- Codemod: 26 import sites moved off @ably/ui/core/Icon + /Icon/types.
Coverage verified: every icon docs renders (static names + the dynamic
icon-tech-${lang} set from languageInfo) resolves via Heroicons or the
registry. Vendored glyphs are excluded from eslint/prettier.
Colour is applied via currentColor + additionalCSS; brand logos keep their own
colours (design sign-off covers any visual nuance).
Refs: DX-11281 parent 8fec0bb commit a2fc78d
81 files changed
Lines changed: 275 additions & 35 deletions
File tree
- src
- components
- Examples
- Icon
- glyphs
- Layout
- mdx
- Markdown
- Redoc
- SDKsPage/Card
- blocks
- dividers
- software/Code
- pages/docs/api
- templates
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments