-
Notifications
You must be signed in to change notification settings - Fork 95
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
Custom icon styling tweaks #1877
Conversation
I'd rather update the example than change the CSS. A lot of what you described was intentional. I think the shiny image is a bit of a misdirection; the primary use case for raster images is likely to be avatar style images. The escape hatch if you have an icon in an image is to add an The icon test in the chat playwright tests is a better example; I forgot to return to the example app (where we should use the same image as in the test app or add the |
From a little bit of playing around with other (avatar) images, it doesn't seem all that uncommon for the image content to be clipped by the border-radius on the container. Adding
|
Ah, I see where you're coming from now |
Co-authored-by: Garrick Aden-Buie <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
Follow up to #1853.
Currently, if you run the example there with the shiny logo
<img>
, you'll getSo, 1cf74c1 sets
max-height
like we do forsvg
, etc. which leads to:Which made me realize that if the image has lots of whitespace, or already something like a border, it's going to look too small/busy.
For this reason, 65d59d2 allow you to put a
.border-0
class on the icon container to get rid of the border/border-radius: