-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Create Notification Component #5948
Copy link
Copy link
Closed
Labels
good first issueIssues for newcomersIssues for newcomershacktoberfestThis Issue is meant for Hacktoberfest 2023This Issue is meant for Hacktoberfest 2023help wantedwebsite redesignIssue/PR part of the Node.js Website RedesignIssue/PR part of the Node.js Website Redesign
Metadata
Metadata
Assignees
Labels
good first issueIssues for newcomersIssues for newcomershacktoberfestThis Issue is meant for Hacktoberfest 2023This Issue is meant for Hacktoberfest 2023help wantedwebsite redesignIssue/PR part of the Node.js Website RedesignIssue/PR part of the Node.js Website Redesign
Create a
Notificationcomponent using the new figma design (direct link).Before You Start...
Details
❓ Not sure where to start breaking down the figma? Read this short guide
🌐 This story requires some internationalization support. Slow down!
Notificationwithin theCommondirectory that contains all the new code.5seconds (configurable via theProvider(see below)), show theNotificationon the bottom right of the screen. Use theToastradix component, which will need to be installed. Follow the the dependency guide.code-bracket. This is a slight variant of the Figma, as the icon in the design is not available. This functionality matches the "component" calledNotificationwithin the FigmaCopied to clipboard!must be internationalized. Add a new keycomponents.common.codebox.copiedto thei18n/locales/en.jsonfile.FormattedMessagefromreact-intlshould be used to reference the key. Look for examples elsewhere in the codebase.components/common/Codebox/index.stories.tsxwhich exercises each of the component's states.Toastrequires a globalProviderwrapper around the entire application. This will need to be present in the storybooks too https://www.radix-ui.com/primitives/docs/components/toast#provider either as a new file within https://github.com/nodejs/nodejs.org/tree/main/providers and/or simply wrapped within https://github.com/nodejs/nodejs.org/blob/main/.storybook/preview.tsx for nowThere are 2 states to capture within styles and stories: