Skip to content

fix(ui-components): make Alert not dismissable - #45291

Merged
ahmaxed merged 1 commit into
freeCodeCamp:mainfrom
huyenltnguyen:fix/alert
Mar 1, 2022
Merged

ahmaxed merged 1 commit into
freeCodeCamp:mainfrom
huyenltnguyen:fix/alert

Conversation

@huyenltnguyen

@huyenltnguyen huyenltnguyen commented Feb 28, 2022 •

Copy link
Copy Markdown
Member

Checklist:

  • I have read freeCodeCamp's contribution guidelines.
  • My pull request has a descriptive title (not a vague title like Update index.md)
  • My pull request targets the main branch of freeCodeCamp.
  • I have tested these changes either locally on my machine, or GitPod.

Closes #45206

This PR is to address #45015 (comment), which was moved to #45206 for further discussion.

Basically, we will eventually have Alert and Flash components. Both are identical, but one is dismissable (Flash) and one is not (Alert). The Flash component is to be built, and a low-priority one. I have added it to our component list in the main issue (#44668).

This PR is to remove props that are related to the dismisability from the Alert component.

Screenshot

  • The "Dismisable" story on the sidebar no longer exists.
  • The component description is updated to mention that it is not dismissable.

Screen Shot 2022-02-28 at 22 35 16

@gitpod-io

gitpod-io Bot commented Feb 28, 2022

Copy link
Copy Markdown

@github-actions github-actions Bot added the scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc. label Feb 28, 2022
@ghost

ghost commented Feb 28, 2022

Copy link
Copy Markdown

👀 Review this PR in a CodeSee Review Map

Preview the Review Map

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map Legend

Comment thread tools/ui-components/src/alert/alert.tsx Resolved
Comment thread tools/ui-components/src/alert/alert.tsx Resolved
@huyenltnguyen
huyenltnguyen marked this pull request as ready for review February 28, 2022 15:51
@huyenltnguyen
huyenltnguyen requested a review from a team February 28, 2022 15:51
@ahmaxed

ahmaxed commented Mar 1, 2022

Copy link
Copy Markdown
Member

Thank you for taking care of this.

@ahmaxed
ahmaxed enabled auto-merge (squash) March 1, 2022 14:23
@ahmaxed
ahmaxed merged commit 686e9f6 into freeCodeCamp:main Mar 1, 2022
HenMoshe pushed a commit to HenMoshe/freeCodeCamp that referenced this pull request Mar 3, 2022
@huyenltnguyen
huyenltnguyen deleted the fix/alert branch March 7, 2022 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Flash component to the component library

3 participants