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

Update banner component svg icon #857

Merged
merged 2 commits into from
Aug 16, 2021
Merged

Update banner component svg icon #857

merged 2 commits into from
Aug 16, 2021

Conversation

bilfeldt
Copy link
Contributor

@bilfeldt bilfeldt commented Aug 16, 2021

Currently the banner component always show a success icon (check-circle) regardless of the style applied for the component.

This PR simply changes this so that the current success icon (check-circle) is only used when the component style is success whereas a more neutral information icon (exclamation-circle) is used otherwise (meaning for style='danger' or any other custom styles added).

This PR uses the check-circle icon for style='success', the icon exclamation-circle for style='danger' and uses information-cicle as fallback for other styles + uses bg-gray-500 for the topbar in this case (had no background before this PR).

When style='success'

Screenshot 2021-08-16 at 11 51 37

When style='danger'

Screenshot 2021-08-16 at 11 53 26

Otherwise

Screenshot 2021-08-16 at 11 52 43

Currently the banner component always show a success icon (`check-circle`) regardless of the style applied for the component.

This PR simply changes this so that the current success icon (`check-circle`) is only used when the component style is `success` whereas a more neutral information icon (`information-circle`) is used otherwise (meaning for `style='danger'` or any other custom styles added).
@driesvints
Copy link
Member

Can you post some screenshots please?

@bilfeldt
Copy link
Contributor Author

Can you post some screenshots please?

While of cause Dries 👍

When style == 'success'

Screenshot 2021-08-16 at 11 29 45

Otherwise (including `style='danger')

Screenshot 2021-08-16 at 11 30 36

@driesvints Actually there are three icons which I would consider relevant exclamation-circle, information-circle and check-circle. Which ones would you prefer that we use, then I can update this PR?

I suggest changing it to:

danger (use exclamation-circle):
Screenshot 2021-08-16 at 11 34 49

success (use check-circle):
Screenshot 2021-08-16 at 11 34 41

Otherwise (use information-circle):
Screenshot 2021-08-16 at 11 37 43

Note that if providing a style different from 'danger' or 'success' right now, the component does not apply any background so default is white text on a white background. Maybe worthwhile adding a fallback neutral bg-gray-500 background in case another style is provided?

Screenshot 2021-08-16 at 11 42 12

@driesvints
Copy link
Member

Thanks!

Which ones would you prefer that we use, then I can update this PR?

Taylor will need to decide on that.

@bilfeldt
Copy link
Contributor Author

bilfeldt commented Aug 16, 2021

@driesvints PR has now been updated to my own preferred solution, let us see what Taylor thinks then :)

PR description has been updated to reflect changes and includes screen dumps of current PR.

@taylorotwell taylorotwell merged commit 50f6f72 into laravel:2.x Aug 16, 2021
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.

None yet

3 participants