-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat(alert): persistent toast, toast actions #2170
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: b60f246 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for red-hat-design-system ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Size Change: +745 B (+0.36%) Total Size: 207 kB
ℹ️ View Unchanged
|
Maybe this needs to be split out to its own issue. However, it was noticeable here due to the extensive custom content added to the code page. It looks like the API for The TOC should have element links and look like this: |
@zeroedin i don't think they're available on any page https://ux.redhat.com/elements/card/code/ |
Interesting, they are on https://ux.redhat.com/elements/navigation-secondary/code/ and https://ux.redhat.com/elements/accordion/code/ My assumption is due to the fact they have sub components that need documentation as well. Maybe we need an overarching "Elements API" header here? |
on that page though, there's no heading for |
Yup, I recognized that as well which is why I'm wondering if we need a Header above all of them to denote the whole section of element api's to follow instead of listing each individually (unless we want to go down the path of nested toc) ## Element API
### `rh-tag`
### `rh-tag-subcomponent` Either way likely out of scope to this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lifted Gratiously; Timed Messages
| `actions` | Array of one or two actions objects | One or more optional body actions | | ||
|
||
</rh-table> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<p>Contact <a href="#">Customer support</a> for more information.</p> | ||
</template> | ||
``` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ac9ec0e
to
b60f246
Compare
What I did
persistent: true
option for toast methodactions: []
option for toast methodTesting Instructions
Notes to Reviewers
I think the docs could use a new Do/Don't section explaining that users should use the
toast()
method and not manually add thevariant="toast"
attribute.Regarding actions, I assumed in this PR that...