Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Component] Alerts Component (Replaces Notifications) #263

Merged
merged 17 commits into from Dec 4, 2023
Merged

Conversation

shindigira
Copy link
Contributor

@shindigira shindigira commented Dec 1, 2023

Closes #240

Changes

  • Renamed Notification to Alert.
  • The type property (success, warning, error, info) is now -- status
  • Allowed the field level component be usable by itself (unlinked)
  • Updated the Storybook Stories showing field level usable separately in conjunction with TextInput
  • Updated the Storybook stories to have parity with the DS equivalent
  • Updated the tests where the field level component is separate

Verification Checklist

See #240 For Verification Checklist

Accessibility Tests (WAVE)

Screenshot 2023-12-01 at 10 59 04 AM Screenshot 2023-12-01 at 10 59 21 AM

How to test this PR

  1. yarn test Alert

Screenshots

Screenshot 2023-12-01 at 11 00 16 AM

Changes:

- Moved the Label component into the verified state
- Changed various references to use Label instead of label
Changes:

  - Simplified the TextInput component to an atom, removed baked-in Notification
  - Updated Storybook description to match CFPB design
  - Updated Storybook stories to match CFPB TextInput examples
Changes:
- The type property (success, warning, error, info) is now -- status
- Allowed the field level component be usable by itself (unlinked)
- Updated the Storybook Stories showing field level usable separately in conjunction with TextInput
- Updated the Storybook stories to have parity with the DS equivalent
- Updated the tests where the field level component is separate
Changes:
- The type property (success, warning, error, info) is now -- status
- Allowed the field level component be usable by itself (unlinked)
- Updated the Storybook Stories showing field level usable separately in conjunction with TextInput
- Updated the Storybook stories to have parity with the DS equivalent
- Updated the tests where the field level component is separate
Copy link

netlify bot commented Dec 1, 2023

Deploy Preview for cfpb-design-system-react ready!

Name Link
🔨 Latest commit 365d1a6
🔍 Latest deploy log https://app.netlify.com/sites/cfpb-design-system-react/deploys/656e156be9482f000875861b
😎 Deploy Preview https://deploy-preview-263--cfpb-design-system-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@meissadia meissadia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking pretty good. One issue with the blank status.

Also, I think the majority of latest PR feedback for the TextIntroduction apply here.

src/components/Alert/AlertFieldLevel.tsx Outdated Show resolved Hide resolved
meissadia
meissadia previously approved these changes Dec 4, 2023
Copy link
Contributor

@meissadia meissadia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏾

@shindigira shindigira merged commit c5832aa into main Dec 4, 2023
7 of 9 checks passed
@shindigira shindigira deleted the 240-alerts branch December 4, 2023 19:04
@shindigira shindigira changed the title [Component] Verify Alerts Component (Replaces Notifications) [Component] Alerts Component (Replaces Notifications) Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task] Verify Alert component & Unlink from Notifications
2 participants