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

use font-awesome icons for close/open #644

Closed
wants to merge 4 commits into from
Closed

Conversation

barryvdh
Copy link
Collaborator

@barryvdh barryvdh commented Apr 2, 2024

It doesn't really change much, but cleaner and easier to style (background-color) in themes (eg for Laravel debugbar)
image

this.$closebtn = $('<a />').addClass(csscls('close-btn')).appendTo(this.$headerRight);
this.$closebtn = $('<a/>').addClass(csscls('close-btn'))
.append($('<i />').attr('class', 'phpdebugbar-fa phpdebugbar-fa-times'))
.css('background', 'none')
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is more as a 'fallback' to avoid duplicate styling for existing integrations..

@barryvdh
Copy link
Collaborator Author

barryvdh commented Apr 3, 2024

I merged #645 in this and added a text-align to achieve the same effect.
image

Not sure if this is better though, we could just use the svg's now that they are centered, and override the fill.
The only downside would be for the case that Font-Awesome is not available for some reason.

@barryvdh
Copy link
Collaborator Author

barryvdh commented Apr 3, 2024

Don't think we need this for now.

@barryvdh barryvdh closed this Apr 3, 2024
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

1 participant