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

Add a live toast example to the docs #32760

Merged
merged 1 commit into from
Jan 18, 2021
Merged

Add a live toast example to the docs #32760

merged 1 commit into from
Jan 18, 2021

Conversation

mdo
Copy link
Member

@mdo mdo commented Jan 11, 2021

Tagging for beta 3 for now so we don't keep adding to Beta 2...

Addresses the toasts aspect of #31330.

/cc @XhmikosR @patrickhlauke

Preview: https://deploy-preview-32760--twbs-bootstrap.netlify.app/docs/5.0/components/toasts/#live

@mdo mdo added this to Inbox in v5.0.0-beta3 via automation Jan 11, 2021
@patrickhlauke
Copy link
Member

Looking good. Would suggest removing the close button since this autohides anyway. (incidentally this made me make a note to go over some more of the advice in the docs; additionally will see if there's a way to make it so that if the toast is hovered or has focus-within, that the toast doesn't hide)

@XhmikosR
Copy link
Member

I don't suppose we want to disable the "Show live toast" button until the Toast finishes showing?

The close button I don't mind having.

BTW the snippet currently just shows the button which I don't think it's useful? In modal we show everything https://twbs-bootstrap.netlify.app/docs/5.0/components/modal/#live-demo

@XhmikosR
Copy link
Member

Should we still show the snippet @mdo? See my comment above.

@mdo
Copy link
Member Author

mdo commented Jan 14, 2021

Looks good to me now @XhmikosR.

@XhmikosR XhmikosR added this to Inbox in v5.0.0-beta2 via automation Jan 18, 2021
@XhmikosR XhmikosR removed this from Inbox in v5.0.0-beta3 Jan 18, 2021
@XhmikosR XhmikosR marked this pull request as ready for review January 18, 2021 13:08
@XhmikosR XhmikosR requested a review from a team as a code owner January 18, 2021 13:08
v5.0.0-beta2 automation moved this from Inbox to Approved Jan 18, 2021
@XhmikosR XhmikosR merged commit 4167c10 into main Jan 18, 2021
v5.0.0-beta2 automation moved this from Approved to Done Jan 18, 2021
@XhmikosR XhmikosR deleted the live-toast branch January 18, 2021 13:10
@XhmikosR XhmikosR added this to Inbox in v4.6.0 via automation Jan 18, 2021
@XhmikosR XhmikosR moved this from Inbox to Needs manual backport in v4.6.0 Jan 18, 2021
XhmikosR added a commit that referenced this pull request Jan 18, 2021
Add a live toast example to the docs
@XhmikosR XhmikosR removed this from Needs manual backport in v4.6.0 Jan 18, 2021
XhmikosR added a commit that referenced this pull request Jan 18, 2021
Add a live toast example to the docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v5.0.0-beta2
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants