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

How to style toast-content vertically? #24

Open
totszwai opened this issue Dec 9, 2023 · 0 comments
Open

How to style toast-content vertically? #24

totszwai opened this issue Dec 9, 2023 · 0 comments

Comments

@totszwai
Copy link

totszwai commented Dec 9, 2023

Hello, I tried to use wc-toast as a completely transparent module within my own module. So I try not to add any CSS to override anything.

I added a <wc-toast style="position: bottom-right;"> element dynamically so I could pretty much display anything I want just fine.
However, I tried to have multiple rows of text within the toast and it just sits side way.

Is there a css variable that I could use to change the flex to display column or some options to make it display the toast content vertically?

toast(`<b>Title</b><br>Hello world`);
toast(`<div>Title</div><div>Hello world</div>`);

image

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

No branches or pull requests

1 participant