Commit ec0e49c
authored
fix(docs): update VariantItem link implementation and separate CLI version docs Closes npm/cli#8414 (#1659)
<!-- What / Why -->
<!-- Describe the request in detail. What it does and why it's being
changed. -->
## Description
This PR addresses
[npm/cli#8414](npm/cli#8414), which reports
that switching versions using the CLI version dropdown does not properly
update the displayed documentation.
### Changes
- **Refactored `VariantItem` component**:
These changes ensure that when users switch CLI versions from the
dropdown, the documentation updates correctly to display the appropriate
content for each version.
---
## Updated
https://github.com/user-attachments/assets/8668e308-ac8d-4f09-b6f4-0ddafa67d317
## References
<!-- Examples:
Related to #0
Depends on #0
Blocked by #0
Fixes #0
Closes #0
-->
Closes npm/cli#84141 parent d73a155 commit ec0e49c
1 file changed
+14
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
40 | 49 | | |
41 | 50 | | |
42 | 51 | | |
| |||
0 commit comments