Skip to content

Conversation

adamviktora
Copy link
Contributor

What: Closes #9331

Additional issues:
Few things I'd also improve in Alert docs:

  • actionClose: instead of opening a pop-up alert, it could close the alert notification (same way as in the demo)
  • the 3rd and 4th variations could be merged to one just to demonstrate the actionClose https://www.patternfly.org/components/alert#alert-variations (or we can demonstrate the actionClose on the 1st or 2nd example)

@patternfly-build
Copy link
Contributor

patternfly-build commented Sep 25, 2023

Copy link
Contributor

@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

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

This is looking good, just a comment below.

Regarding your other comments:

  • Personally I'd be in favor of replacing the alert popup with just a console log. It may be more important to keep these alerts on screen rather than allow them to be removed just for purposes of the examples.
  • Would make sense to combine or remove duplicate examples. I'm not sure if we really need 4 of the alerts in that particular "Variations" example to use a close button since we're mentioning a specific alert in the example description; maybe just keep that 4th Alert to show the actionClose prop? I'd delegate to @tlabaj and @andrew-ronaldson on this though.

- "Ignore" text acts as a button, not a link
- alert variations examples are simpler
- fixed a link to /components/alert/accessibility
- AlertActionCloseButton will not trigger a popup alert
Copy link
Contributor

@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

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

One other comment below. Also can we update the alerts in the "Expandable alerts" example so that one has just the close button (no actionLinks), and the other has only actionLinks (no close button).

Copy link
Collaborator

@andrew-ronaldson andrew-ronaldson left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@tlabaj tlabaj merged commit 5bda0c4 into patternfly:main Oct 16, 2023
@patternfly-build
Copy link
Contributor

Your changes have been released in:

Thanks for your contribution! 🎉

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.

Update AlertActionLink in examples to show proper link usage

5 participants