-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Closed as not planned
Labels
infrastructureIssues/PRs related to the Repository InfraIssues/PRs related to the Repository Infra
Description
Enter your suggestions in details:
NodeReleasesProvider is used in Storybook now. However, it is reading from generated public/node-releases-data.json file now.
https://github.com/nodejs/nodejs.org/blob/main/next.app.tsx#L30-L34
And similarly with useDetectOS hook, it will detect your PC/laptop's OS and use it for generating the Storybook snapshots.
See this generated snapshot.
Notice that the Mac's DownloadCard is having downloadCardActive class:
<li class="DownloadCard_downloadCard__eWZZG DownloadCard_downloadCardActive__mwG_u"
role="tab"
id="tabdownload-card-MAC"
aria-selected="false"
aria-disabled="false"
aria-controls="paneldownload-card-MAC"
tabindex="0"
data-rttab="true"
>I think we need a global mock since many components depend on Node releases data and user OS information.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
infrastructureIssues/PRs related to the Repository InfraIssues/PRs related to the Repository Infra