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

docs(Alert): update AlertActionLink props so they follow guidelines #9666

Merged
merged 4 commits into from
Oct 16, 2023

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.

packages/react-core/src/components/Alert/examples/Alert.md Outdated Show resolved Hide resolved
- "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).

packages/react-core/src/components/Alert/examples/Alert.md Outdated Show resolved Hide resolved
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
10 checks passed
@patternfly-build
Copy link
Contributor

Your changes have been released in:

  • @patternfly/react-code-editor@5.2.0-prerelease.7
  • @patternfly/react-core@5.2.0-prerelease.7
  • @patternfly/react-docs@6.2.0-prerelease.7
  • @patternfly/react-integration@5.1.1-prerelease.12
  • demo-app-ts@5.1.1-prerelease.30
  • @patternfly/react-table@5.2.0-prerelease.7

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