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

Make title optional in generated flash component #6065

Merged
merged 4 commits into from
Jan 27, 2025
Merged

Conversation

SteffenDE
Copy link
Contributor

Use sky as color to be more info-like for type :info.

Relates to: #5969

image

Multi-line messages
image

Info
image

I increased the icon size to match the text's line-height, otherwise it would not look aligned:

image

Use sky as color to be more info-like for type :info.
Relates to: #5969
<.flash
id="client-error"
kind={:error}
title=<%= maybe_heex_attr_gettext.("We can't find the internet", @gettext) %>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well maybe we do still want the title for those? @josevalim

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or we move the "Something went wrong!" part into the message

@SteffenDE
Copy link
Contributor Author

image image

@SteffenDE
Copy link
Contributor Author

image

Slightly less bold

@josevalim
Copy link
Member

Looks good! Do we want to add some breaks/vertical spacing? Maybe we render the same as before but without forcing a title on everyone? Alternatively we can make the title optional inside flash itself. Thoughts?

@josevalim
Copy link
Member

Nah, ignore me. No need for spacing. Ship it!

@SteffenDE
Copy link
Contributor Author

SteffenDE commented Jan 27, 2025

It's no problem to make the title optional

image

image

@josevalim
Copy link
Member

Yeah, whatever is less code then. :)

@SteffenDE SteffenDE changed the title Remove title from generated flash component Make title optional in generated flash component Jan 27, 2025
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.

2 participants