-
Notifications
You must be signed in to change notification settings - Fork 86
refactor!: replace SVG with <div> and custom font with Lumo icon #9316
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
Conversation
8a3f861
to
d0e894f
Compare
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.
The change likely stems from a rendering difference between SVG and HTML. The new version, however, seems slightly better aligned to my eye.
@@ -40,23 +40,15 @@ export const avatarStyles = css` | |||
} | |||
|
|||
[part='icon'] { | |||
font-size: 5.6em; | |||
height: 100%; | |||
mask: var(--_vaadin-icon-user) no-repeat center / 74%; |
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.
Today I learned about this shorthand syntax, nice 😃
|
Description
<svg part="icon">
with<div part="icon">
vaadin-avatar-icons
font--lumo-icons-user
instead of the custom font iconFixes #9309
Type of change