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

@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 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
@XhmikosR XhmikosR merged commit 4167c10 into main Jan 18, 2021
@XhmikosR XhmikosR deleted the live-toast branch January 18, 2021 13:10
XhmikosR added a commit that referenced this pull request Jan 18, 2021
Add a live toast example to the docs
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
None yet
Development

Successfully merging this pull request may close these issues.

3 participants