igniteui-astro-components 0.0.27 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/README.md +82 -74
  2. package/package.json +15 -2
  3. package/src/components/CopyCode/CopyCode.astro +21 -7
  4. package/src/components/DocsBreadcrumb/DocsBreadcrumb.astro +33 -21
  5. package/src/components/DocsBreadcrumb/DocsBreadcrumb.scss +44 -43
  6. package/src/components/DocsBreadcrumb/README.md +10 -14
  7. package/src/components/DocsSidebar/DocsSidebar.astro +47 -45
  8. package/src/components/DocsSidebar/DocsSidebar.scss +120 -122
  9. package/src/components/DocsSidebar/README.md +25 -21
  10. package/src/components/DocsSidebar/SidebarFilterInput.astro +24 -29
  11. package/src/components/DocsSidebar/SidebarFilterInput.scss +90 -89
  12. package/src/components/DocsSidebar/SidebarLabel.astro +35 -26
  13. package/src/components/DocsSidebar/sidebar-filter.ts +93 -56
  14. package/src/components/DocsSubHeader/DocsSubHeader.astro +256 -195
  15. package/src/components/DocsSubHeader/DocsSubHeader.scss +181 -178
  16. package/src/components/DocsSubHeader/README.md +18 -16
  17. package/src/components/DocsToc/DocsToc.astro +301 -280
  18. package/src/components/DocsToc/DocsToc.scss +20 -21
  19. package/src/components/DocsToc/README.md +11 -9
  20. package/src/components/DocsToc/toTreeNodes.ts +3 -8
  21. package/src/components/DocsTree/DocsTree.astro +32 -20
  22. package/src/components/DocsTree/DocsTreeItem.astro +35 -30
  23. package/src/components/DocsTree/README.md +16 -15
  24. package/src/components/DocsTree/docs-tree.scss +267 -268
  25. package/src/components/GlobalFooter/GlobalFooter.astro +10 -10
  26. package/src/components/GlobalFooter/README.md +3 -2
  27. package/src/components/GlobalNavBar/GlobalNavBar.astro +4 -2
  28. package/src/components/GlobalNavBar/GlobalNavBar.module.scss +222 -222
  29. package/src/components/GlobalNavBar/README.md +3 -2
  30. package/src/components/LicenseIndicator/LicenseIndicator.astro +7 -5
  31. package/src/components/LicenseIndicator/LicenseIndicator.scss +3 -3
  32. package/src/components/MobileSidebarToggle/MobileSidebarToggle.astro +16 -17
  33. package/src/components/MobileSidebarToggle/README.md +3 -2
  34. package/src/components/MobileTocToggle/MobileTocToggle.astro +75 -61
  35. package/src/components/MobileTocToggle/MobileTocToggle.scss +65 -59
  36. package/src/components/Search/README.md +1 -0
  37. package/src/components/Search/Search.astro +137 -109
  38. package/src/components/Search/Search.scss +20 -20
  39. package/src/components/SearchAdvanced/README.md +21 -15
  40. package/src/components/SearchAdvanced/SearchAdvanced.astro +205 -133
  41. package/src/components/SearchAdvanced/SearchAdvanced.scss +152 -153
  42. package/src/components/mdx/ApiLink/ApiLink.astro +133 -113
  43. package/src/components/mdx/ApiLink/ApiLink.scss +9 -9
  44. package/src/components/mdx/ApiLink/README.md +26 -22
  45. package/src/components/mdx/ApiLink/api-link-index.ts +196 -173
  46. package/src/components/mdx/ApiRef/ApiRef.astro +54 -51
  47. package/src/components/mdx/ApiRef/README.md +20 -15
  48. package/src/components/mdx/Badge/Badge.astro +14 -14
  49. package/src/components/mdx/Badge/Badge.scss +61 -56
  50. package/src/components/mdx/Badge/README.md +24 -19
  51. package/src/components/mdx/DocsAside/DocsAside.astro +30 -37
  52. package/src/components/mdx/DocsAside/DocsAside.scss +82 -82
  53. package/src/components/mdx/DocsAside/README.md +22 -22
  54. package/src/components/mdx/Faq/Faq.astro +86 -0
  55. package/src/components/mdx/Faq/Faq.scss +105 -0
  56. package/src/components/mdx/Faq/FaqItem.astro +117 -0
  57. package/src/components/mdx/Faq/README.md +223 -0
  58. package/src/components/mdx/Faq/types.ts +34 -0
  59. package/src/components/mdx/PlatformBlock/PlatformBlock.astro +3 -2
  60. package/src/components/mdx/PlatformBlock/README.md +6 -8
  61. package/src/components/mdx/Sample/README.md +21 -16
  62. package/src/components/mdx/Sample/Sample.astro +97 -74
  63. package/src/components/mdx/Sample/Sample.scss +132 -132
  64. package/src/content-helper.ts +71 -72
  65. package/src/content.config.ts +1 -6
  66. package/src/integration.ts +566 -512
  67. package/src/layouts/DocsLayout/DocsLayout.astro +228 -182
  68. package/src/layouts/DocsLayout/DocsLayout.scss +261 -261
  69. package/src/layouts/DocsLayout/README.md +24 -35
  70. package/src/lib/nav-helpers.ts +88 -82
  71. package/src/lib/types.ts +76 -76
  72. package/src/llms.ts +205 -166
  73. package/src/platform.ts +312 -162
  74. package/src/plugins/rehype-heading-anchors.ts +45 -45
  75. package/src/plugins/rehype-pagefind-ignore.ts +19 -19
  76. package/src/plugins/rehype-table-wrapper.ts +30 -30
  77. package/src/plugins/remark-docfx.ts +12 -0
  78. package/src/plugins/remark-env-vars.ts +12 -4
  79. package/src/plugins/remark-md-links.ts +10 -4
  80. package/src/scripts/icon-manifest.ts +13 -5
  81. package/src/scripts/sample-widget.ts +557 -501
  82. package/src/sidebar.ts +103 -97
  83. package/src/styles/global/_code-blocks.scss +43 -44
  84. package/src/styles/global/_component-themes.scss +151 -153
  85. package/src/styles/global/_icon-gallery.scss +81 -81
  86. package/src/styles/global/_index.scss +0 -1
  87. package/src/styles/global/_markdown.scss +816 -787
  88. package/src/styles/global/_palette.scss +456 -110
  89. package/src/styles/global/_search-shared.scss +402 -398
  90. package/src/styles/global/_type-scale.scss +127 -127
  91. package/src/styles/global/_variables.scss +138 -111
  92. package/src/styles/theme.scss +41 -41
  93. package/src/virtual-modules.d.ts +11 -2
@@ -14,11 +14,11 @@
14
14
  */
15
15
 
16
16
  igc-tree {
17
- --ig-tree-background: transparent;
18
- --ig-size: 1;
19
-
20
- position: relative;
21
- padding-inline: rem(12px);
17
+ --ig-tree-background: transparent;
18
+ --ig-size: 1;
19
+
20
+ position: relative;
21
+ padding-inline: rem(12px);
22
22
  }
23
23
 
24
24
  // TODO KEEP THIS IF WEE NEED ADDITIONAL VISUAL INDICATOR FOR THE TOC
@@ -58,341 +58,340 @@ igc-tree {
58
58
  // anchor-name: --selected-tree-item;
59
59
  //}
60
60
 
61
-
62
61
  igc-tree[data-variant='sidebar'] {
63
- igc-tree-item + igc-tree-item[data-has-children] {
64
- margin-block-start: rem(4px);
65
- }
66
-
67
- .docs-tree-label {
68
- @include type-style('body-2') {
69
- margin-block: 0;
70
- line-height: rem(20px);
71
- }
72
- }
73
-
74
- igc-tree-item[aria-expanded] {
75
- &::part(wrapper) {
76
- border-radius: rem(4px);
77
-
78
- &:hover {
79
- background-color: var(--ig-gray-50);
80
- }
81
- }
82
-
83
- .docs-tree-group {
84
- padding-block: rem(8px);
85
- }
86
-
87
- }
88
-
89
- igc-tree-item[aria-expanded][active] {
90
- &::part(wrapper) {
91
- background-color: var(--ig-gray-50);
92
- }
93
- }
62
+ igc-tree-item + igc-tree-item[data-has-children] {
63
+ margin-block-start: rem(4px);
64
+ }
65
+
66
+ .docs-tree-label {
67
+ @include type-style('body-2') {
68
+ margin-block: 0;
69
+ line-height: rem(20px);
70
+ }
71
+ }
72
+
73
+ igc-tree-item[aria-expanded] {
74
+ &::part(wrapper) {
75
+ border-radius: rem(4px);
76
+
77
+ &:hover {
78
+ background-color: var(--ig-gray-50);
79
+ }
80
+ }
81
+
82
+ .docs-tree-group {
83
+ padding-block: rem(8px);
84
+ }
85
+ }
86
+
87
+ igc-tree-item[aria-expanded][active] {
88
+ &::part(wrapper) {
89
+ background-color: var(--ig-gray-50);
90
+ }
91
+ }
94
92
  }
95
93
 
96
94
  igc-tree[data-variant='toc'] {
97
- igc-tree-item[data-depth='0']::part(label) {
98
- font-weight: 600 !important;
99
- color: var(--ig-gray-900);
100
- }
101
-
102
- igc-tree-item:not([data-has-children]) {
103
- margin-block: rem(6px);
104
- }
105
-
106
- igc-tree-item:not([data-depth='0'], [data-has-children]) {
107
- margin-left: rem(16px);
108
- }
109
-
110
- igc-tree-item[data-depth='0'] {
111
- margin-block: rem(16px) 0;
112
- }
113
-
114
- igc-tree-item::part(wrapper) {
115
- line-height: 22.75px !important;
116
- margin: 0 !important;
117
- }
118
-
119
- > igc-tree-item:first-of-type {
120
- margin-block-start: 0;
121
- }
95
+ igc-tree-item[data-depth='0']::part(label) {
96
+ font-weight: 600 !important;
97
+ color: var(--ig-gray-900);
98
+ }
99
+
100
+ igc-tree-item:not([data-has-children]) {
101
+ margin-block: rem(6px);
102
+ }
103
+
104
+ igc-tree-item:not([data-depth='0'], [data-has-children]) {
105
+ margin-left: rem(16px);
106
+ }
107
+
108
+ igc-tree-item[data-depth='0'] {
109
+ margin-block: rem(16px) 0;
110
+ }
111
+
112
+ igc-tree-item::part(wrapper) {
113
+ line-height: 22.75px !important;
114
+ margin: 0 !important;
115
+ }
116
+
117
+ > igc-tree-item:first-of-type {
118
+ margin-block-start: 0;
119
+ }
122
120
  }
123
121
 
124
122
  igc-tree-item {
125
- --igc-tree-indentation-size: 0;
126
- --background: transparent;
127
- --foreground: light-dark(var(--ig-gray-600), var(--ig-gray-400));
128
- --background-selected: transparent;
129
- --background-active: transparent;
130
- --foreground-active: light-dark(var(--ig-gray-600), var(--ig-gray-400));
131
- --foreground-hover: light-dark(var(--ig-gray-600), var(--ig-gray-400));
132
- --hover-background: light-dark(var(--ig-gray-600), var(--ig-gray-400));
133
- --background-disabled: transparent;
134
- --hover-color: transparent;
135
- --hover-selected-color: transparent;
136
- --background-active-selected: transparent;
137
- --foreground-selected: transparent;
138
- --foreground-active-selected: light-dark(var(--ig-gray-600), var(--ig-gray-400));
139
- //--ig-tree-size: #{rem(32px)};
140
-
141
- a {
142
- position: absolute;
143
- inset: 0;
144
- align-items: center;
145
- color: inherit;
146
- text-decoration: none;
147
- width: 100%;
148
- height: 100%;
149
-
150
- &:focus {
151
- outline: none;
152
- }
153
- }
154
-
155
- cursor: default;
123
+ --igc-tree-indentation-size: 0;
124
+ --background: transparent;
125
+ --foreground: light-dark(var(--ig-gray-600), var(--ig-gray-400));
126
+ --background-selected: transparent;
127
+ --background-active: transparent;
128
+ --foreground-active: light-dark(var(--ig-gray-600), var(--ig-gray-400));
129
+ --foreground-hover: light-dark(var(--ig-gray-600), var(--ig-gray-400));
130
+ --hover-background: light-dark(var(--ig-gray-600), var(--ig-gray-400));
131
+ --background-disabled: transparent;
132
+ --hover-color: transparent;
133
+ --hover-selected-color: transparent;
134
+ --background-active-selected: transparent;
135
+ --foreground-selected: transparent;
136
+ --foreground-active-selected: light-dark(var(--ig-gray-600), var(--ig-gray-400));
137
+ //--ig-tree-size: #{rem(32px)};
138
+
139
+ a {
140
+ position: absolute;
141
+ inset: 0;
142
+ align-items: center;
143
+ color: inherit;
144
+ text-decoration: none;
145
+ width: 100%;
146
+ height: 100%;
147
+
148
+ &:focus {
149
+ outline: none;
150
+ }
151
+ }
152
+
153
+ cursor: default;
156
154
  }
157
155
 
158
156
  igc-tree:not([data-variant='toc']) {
159
- igc-tree-item::part(wrapper) {
160
- @include type-style('body-2') {
161
- margin-block: 0;
162
- }
163
-
164
- padding-inline: 0;
165
- }
157
+ igc-tree-item::part(wrapper) {
158
+ @include type-style('body-2') {
159
+ margin-block: 0;
160
+ }
161
+
162
+ padding-inline: 0;
163
+ }
166
164
  }
167
165
 
168
166
  igc-tree[data-variant='toc'] {
169
- igc-tree-item::part(wrapper) {
170
- @include type-style('body-2') {
171
- margin-block: 0;
172
- }
173
- }
174
-
175
- igc-tree-item[active] {
176
- .group-label-text {
177
- color: var(--igd-accent);
178
- }
179
- }
167
+ igc-tree-item::part(wrapper) {
168
+ @include type-style('body-2') {
169
+ margin-block: 0;
170
+ }
171
+ }
172
+
173
+ igc-tree-item[active] {
174
+ .group-label-text {
175
+ color: var(--igd-accent);
176
+ }
177
+ }
180
178
  }
181
179
 
182
180
  igc-tree-item::part(focused) {
183
- box-shadow: none;
181
+ box-shadow: none;
184
182
  }
185
183
 
186
184
  igc-tree-item::part(indicator) {
187
- display: none;
185
+ display: none;
188
186
  }
189
187
 
190
188
  igc-tree-item::part(label) {
191
- width: 100%;
192
- max-height: 100%;
193
- padding-block: 0;
194
- text-overflow: unset;
195
- white-space: unset;
196
- word-break: break-word;
197
- overflow: unset;
198
-
189
+ width: 100%;
190
+ max-height: 100%;
191
+ padding-block: 0;
192
+ text-overflow: unset;
193
+ white-space: unset;
194
+ word-break: break-word;
195
+ overflow: unset;
199
196
  }
200
197
 
201
198
  igc-tree-item[data-has-children] {
202
- > [slot='label'] {
203
- display: flex;
204
- align-items: center;
205
- width: 100%;
206
- }
199
+ > [slot='label'] {
200
+ display: flex;
201
+ align-items: center;
202
+ width: 100%;
203
+ }
207
204
  }
208
205
 
209
206
  .tree-expand-icon {
210
- margin-inline-start: auto;
211
- flex-shrink: 0;
212
- color: inherit;
213
- transform: rotate(-90deg);
214
- transition: transform 0.2s ease;
215
- margin-inline-end: rem(1px);
207
+ margin-inline-start: auto;
208
+ flex-shrink: 0;
209
+ color: inherit;
210
+ transform: rotate(-90deg);
211
+ transition: transform 0.2s ease;
212
+ margin-inline-end: rem(1px);
216
213
  }
217
214
 
218
215
  igc-tree-item[aria-expanded='false'] > [slot='label'] {
219
- .tree-expand-icon {
220
- color: var(--igd-accent);
221
- }
216
+ .tree-expand-icon {
217
+ color: var(--igd-accent);
218
+ }
222
219
  }
223
220
 
224
221
  igc-tree-item[aria-expanded='true'] > [slot='label'] {
225
- .tree-expand-icon {
226
- transform: rotate(0deg);
227
- color: light-dark(var(--ig-gray-800), var(--ig-gray-300));
228
- }
222
+ .tree-expand-icon {
223
+ transform: rotate(0deg);
224
+ color: light-dark(var(--ig-gray-800), var(--ig-gray-300));
225
+ }
229
226
  }
230
227
 
231
228
  igc-tree-item[data-has-children][data-depth='0'] {
232
- --igc-tree-indentation-size: 0;
229
+ --igc-tree-indentation-size: 0;
233
230
  }
234
231
 
235
232
  igc-tree-item[data-has-children] {
236
- --foreground: light-dark(var(--ig-gray-900), var(--ig-gray-600));
237
- --foreground-selected: light-dark(var(--ig-gray-900), var(--ig-gray-600));
238
- --foreground-active-selected: light-dark(var(--ig-gray-900), var(--ig-gray-600));
239
- --foreground-active: light-dark(var(--ig-gray-900), var(--ig-gray-50));
240
- --foreground-hover: light-dark(var(--ig-gray-900), var(--ig-gray-50));
233
+ --foreground: light-dark(var(--ig-gray-900), var(--ig-gray-600));
234
+ --foreground-selected: light-dark(var(--ig-gray-900), var(--ig-gray-600));
235
+ --foreground-active-selected: light-dark(var(--ig-gray-900), var(--ig-gray-600));
236
+ --foreground-active: light-dark(var(--ig-gray-900), var(--ig-gray-50));
237
+ --foreground-hover: light-dark(var(--ig-gray-900), var(--ig-gray-50));
241
238
  }
242
239
 
243
240
  // This are the igc-tree-item that dont have igc-tree-item inside
244
241
  igc-tree-item:not([data-has-children]) {
245
- &::part(wrapper) {
246
- --size: auto;
247
-
248
- margin-block: rem(2px) !important;
249
- }
242
+ &::part(wrapper) {
243
+ --size: auto;
244
+
245
+ margin-block: rem(2px) !important;
246
+ }
250
247
  }
251
248
 
252
249
  igc-tree-item:not([data-depth='0'], [data-has-children]) {
253
- .docs-tree-label {
254
- font-weight: 400;
255
- }
250
+ .docs-tree-label {
251
+ font-weight: 400;
252
+ }
256
253
  }
257
254
 
258
255
  .docs-tree-label {
259
- display: -webkit-box;
260
- -webkit-line-clamp: 2;
261
- -webkit-box-orient: vertical;
262
- overflow: hidden;
263
- white-space: normal;
264
- word-break: break-word;
256
+ display: -webkit-box;
257
+ -webkit-line-clamp: 2;
258
+ -webkit-box-orient: vertical;
259
+ overflow: hidden;
260
+ white-space: normal;
261
+ word-break: break-word;
265
262
  }
266
263
 
267
264
  /* Hover accent applies to leaf items (sidebar) and all linked items (TOC) */
268
265
  //.docs-tree-link:hover ~ .docs-tree-label,
269
266
  igc-tree-item:not([data-has-children]):hover .docs-tree-label {
270
- color: var(--igd-accent);
267
+ color: var(--igd-accent);
271
268
  }
272
269
 
273
270
  .igd-label-and-badge {
274
- position: relative;
275
- border-radius: rem(4px);
276
- padding-block: rem(8px);
277
- padding-inline-start: rem(12px);
278
- padding-inline-end: rem(8px);
279
- height: 100%;
280
- z-index: -1;
281
-
282
- //&::before {
283
- // content: '';
284
- // position: absolute;
285
- // inset-block-start: 0;
286
- // inset-inline-end: calc(100% + (var(--igc-tree-indentation-size) / 2));
287
- // width: rem(1px);
288
- // height: calc(100% + rem(4px));
289
- // border-radius: 0;
290
- // background: light-dark(var(--ig-gray-300), var(--ig-gray-300));
291
- //}
271
+ position: relative;
272
+ border-radius: rem(4px);
273
+ padding-block: rem(8px);
274
+ padding-inline-start: rem(12px);
275
+ padding-inline-end: rem(8px);
276
+ height: 100%;
277
+ z-index: -1;
278
+
279
+ //&::before {
280
+ // content: '';
281
+ // position: absolute;
282
+ // inset-block-start: 0;
283
+ // inset-inline-end: calc(100% + (var(--igc-tree-indentation-size) / 2));
284
+ // width: rem(1px);
285
+ // height: calc(100% + rem(4px));
286
+ // border-radius: 0;
287
+ // background: light-dark(var(--ig-gray-300), var(--ig-gray-300));
288
+ //}
292
289
  }
293
290
 
294
291
  .docs-tree-link {
295
- &:hover,
296
- &:focus {
297
- + .igd-label-and-badge {
298
- background-color: var(--ig-gray-50);
299
- }
300
- }
292
+ &:hover,
293
+ &:focus {
294
+ + .igd-label-and-badge {
295
+ background-color: var(--ig-gray-50);
296
+ }
297
+ }
301
298
  }
302
299
 
303
300
  igc-tree-item[selected] {
304
- igc-tree-item[selected]:not([aria-expanded]) {
305
- .igd-label-and-badge {
306
- color: var(--igd-on-accent);
307
- background-color: var(--igd-accent);
308
-
309
- .docs-tree-label {
310
- color: var(--igd-on-accent);
311
- }
312
- }
313
-
314
- &:has(.igd-label-and-badge) {
315
- &:hover,
316
- &:focus {
317
- .igd-label-and-badge {
318
- background-color: var(--igd-accent);
319
-
320
- .docs-tree-label {
321
- color: #fff;
322
- }
323
- }
324
- }
325
- }
326
-
327
- .sidebar-premium-icon {
328
- color: var(--igd-on-accent);
329
- }
330
-
331
- igc-badge {
332
- &.preview {
333
- --border-color: var(--igd-on-accent);
334
- }
335
-
336
- &.new {
337
- --background-color: var(--igd-new-bg);
338
- --text-color: var(--igd-new-color);
339
- --icon-color: var(--igd-new-color);
340
- --border-color: var(--igd-on-accent);
341
- }
342
-
343
- &.updated {
344
- --background-color: var(--igd-updated-bg);
345
- --text-color: var(--igd-updated-color);
346
- --icon-color: var(--igd-updated-color);
347
- --border-color: var(--igd-on-accent);
348
- }
349
-
350
- &.premium {
351
- --background-color: var(--igd-premium-bg);
352
- --text-color: var(--igd-premium-color);
353
- --icon-color: var(--igd-premium-color);
354
- --border-color: var(--igd-on-accent);
355
- }
356
-
357
- &.opensource {
358
- --background-color: var(--igd-opensource-bg);
359
- --text-color: var(--igd-opensource-color);
360
- --icon-color: var(--igd-opensource-color);
361
- --border-color: var(--igd-on-accent);
362
- }
363
- }
364
- }
301
+ igc-tree-item[selected]:not([aria-expanded]) {
302
+ .igd-label-and-badge {
303
+ color: var(--igd-on-accent);
304
+ background-color: var(--igd-accent);
305
+
306
+ .docs-tree-label {
307
+ color: var(--igd-on-accent);
308
+ }
309
+ }
310
+
311
+ &:has(.igd-label-and-badge) {
312
+ &:hover,
313
+ &:focus {
314
+ .igd-label-and-badge {
315
+ background-color: var(--igd-accent);
316
+
317
+ .docs-tree-label {
318
+ color: #fff;
319
+ }
320
+ }
321
+ }
322
+ }
323
+
324
+ .sidebar-premium-icon {
325
+ color: var(--igd-on-accent);
326
+ }
327
+
328
+ igc-badge {
329
+ &.preview {
330
+ --border-color: var(--igd-on-accent);
331
+ }
332
+
333
+ &.new {
334
+ --background-color: var(--igd-new-bg);
335
+ --text-color: var(--igd-new-color);
336
+ --icon-color: var(--igd-new-color);
337
+ --border-color: var(--igd-on-accent);
338
+ }
339
+
340
+ &.updated {
341
+ --background-color: var(--igd-updated-bg);
342
+ --text-color: var(--igd-updated-color);
343
+ --icon-color: var(--igd-updated-color);
344
+ --border-color: var(--igd-on-accent);
345
+ }
346
+
347
+ &.premium {
348
+ --background-color: var(--igd-premium-bg);
349
+ --text-color: var(--igd-premium-color);
350
+ --icon-color: var(--igd-premium-color);
351
+ --border-color: var(--igd-on-accent);
352
+ }
353
+
354
+ &.opensource {
355
+ --background-color: var(--igd-opensource-bg);
356
+ --text-color: var(--igd-opensource-color);
357
+ --icon-color: var(--igd-opensource-color);
358
+ --border-color: var(--igd-on-accent);
359
+ }
360
+ }
361
+ }
365
362
  }
366
363
 
367
364
  igc-tree[data-variant='sidebar'] {
368
- overflow: hidden;
369
-
370
- igc-tree-item[data-has-children] {
371
- --foreground: light-dark(var(--ig-gray-900), var(--ig-gray-600));
372
- --foreground-selected: light-dark(var(--ig-gray-900), var(--ig-gray-600));
373
- --foreground-active-selected: light-dark(var(--ig-gray-900), var(--ig-gray-600));
374
- --foreground-active: light-dark(var(--ig-gray-900), var(--ig-gray-50));
375
- }
365
+ overflow: hidden;
366
+
367
+ igc-tree-item[data-has-children] {
368
+ --foreground: light-dark(var(--ig-gray-900), var(--ig-gray-600));
369
+ --foreground-selected: light-dark(var(--ig-gray-900), var(--ig-gray-600));
370
+ --foreground-active-selected: light-dark(var(--ig-gray-900), var(--ig-gray-600));
371
+ --foreground-active: light-dark(var(--ig-gray-900), var(--ig-gray-50));
372
+ }
376
373
  }
377
374
 
378
375
  igc-tree[data-variant='toc'] {
379
- /* TOC variant — active link highlighted by scroll-spy via aria-current="true". */
380
- .docs-tree-link[aria-current='true'] {
381
- color: var(--igd-accent);
382
-
383
- + .docs-tree-label {
384
- color: var(--igd-accent);
385
- }
386
- }
387
-
388
- /* No expand/collapse icons in the TOC — all items are links */
389
- .tree-expand-icon {
390
- display: none;
391
- }
376
+ /* TOC variant — active link highlighted by scroll-spy via aria-current="true". */
377
+ .docs-tree-link[aria-current='true'] {
378
+ color: var(--igd-accent);
379
+
380
+ + .docs-tree-label {
381
+ color: var(--igd-accent);
382
+ }
383
+ }
384
+
385
+ /* No expand/collapse icons in the TOC — all items are links */
386
+ .tree-expand-icon {
387
+ display: none;
388
+ }
392
389
  }
393
390
 
394
391
  /* Filter visibility — driven by <sidebar-filter>. */
395
392
  // Removing this will break the filter in the sidebar
396
- sidebar-filter[data-filtering] igc-tree[data-variant='sidebar'] igc-tree-item[data-path]:not([data-filter-match]) {
397
- display: none;
393
+ sidebar-filter[data-filtering]
394
+ igc-tree[data-variant='sidebar']
395
+ igc-tree-item[data-path]:not([data-filter-match]) {
396
+ display: none;
398
397
  }
@@ -26,15 +26,15 @@ const resolvedLang = lang;
26
26
  // Fetch footer HTML directly (cached per locale per build).
27
27
  const igNav = await fetchIgNav(resolvedLang);
28
28
  ---
29
- <div class={styles.footer} data-igd-footer>
30
29
 
31
- {/* === IgniteUI / default Infragistics footer — fetched via fetchIgNav() === */}
32
- {
33
- igNav?.prefetched && (
34
- <>
35
- <Fragment set:html={igNav.uiFooterHtml} />
36
- {igNav.footerHtml && <Fragment set:html={igNav.footerHtml} />}
37
- </>
38
- )
39
- }
30
+ <div class={styles.footer} data-igd-footer>
31
+ {/* === IgniteUI / default Infragistics footer — fetched via fetchIgNav() === */}
32
+ {
33
+ igNav?.prefetched && (
34
+ <>
35
+ <Fragment set:html={igNav.uiFooterHtml} />
36
+ {igNav.footerHtml && <Fragment set:html={igNav.footerHtml} />}
37
+ </>
38
+ )
39
+ }
40
40
  </div>
@@ -10,8 +10,8 @@ import GlobalFooter from 'igniteui-astro-components/components/GlobalFooter.astr
10
10
 
11
11
  ## Props
12
12
 
13
- | Prop | Type | Description |
14
- |------|------|-------------|
13
+ | Prop | Type | Description |
14
+ | ------ | --------- | -------------------------------------------------- |
15
15
  | `lang` | `NavLang` | **Required.** Locale — `'en'` \| `'jp'` \| `'kr'`. |
16
16
 
17
17
  ## Behaviour
@@ -24,6 +24,7 @@ import GlobalFooter from 'igniteui-astro-components/components/GlobalFooter.astr
24
24
  ---
25
25
  import GlobalFooter from 'igniteui-astro-components/components/GlobalFooter.astro';
26
26
  ---
27
+
27
28
  <GlobalFooter lang="en" />
28
29
  ```
29
30