-
Notifications
You must be signed in to change notification settings - Fork 86
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
Inherit icon size to font size of text in button #702
Comments
Hey @lstraka-telekom thanks for bringing this up. You're totally right it would make sense to kind of "link" the size of the icon to the size of the button, without having to manually set it. We aim for a nice balance between out-of-the-box and flexibility. I'm gonna forward this to the team to discuss the possible ways to improve this. What would be your preferred solution out of the options you mentioned? |
Hi @acstll But I am here only as a consumer I have no experiences in web-components and its behaviour so I do not know how it in the background works :D So if you plan something or implement something than just let me know about that ... |
That's really great feedback. Thank you! We're exploring the "fontawesome" approach, where icon size would react to context's font size (the h1 example is really interesting). And we're definitely adding some "magic" to set the icon's |
Hi,
I have something like this :
Here in the code if I remove size="16" from the icon, the icon is much higher than the text in button (button-label). Is it somehow possible make it "dynamic" if button use size=small than also icon should inherit that ? or at least use the same "naming" for size="small" also in icon ? not use direct numbers? It is useful if I need to have larger icon to set its size with a number but not all the time.
Maybe it is actually somehow possible, but my question related to the usage of button with icon, if button has attribute
size="small"
than I have to manually do set<icon-XX size="16"/>
.One possible solution should be to allow for size attribute in icon
types: number | 'small' | 'large'
as allowed types similar also to the size attribute used in button, and in that case, the "font-size" should use same size for button text and icon also ? Or maybe I am just missing some "docs" how to correctly use that ?The text was updated successfully, but these errors were encountered: