Skip to content

Conversation

@tomivirkki
Copy link
Member

Fixes #2105

@tomivirkki tomivirkki added the no-polymer Removing Polymer from Vaadin public APIs label Jun 15, 2021
@tomivirkki tomivirkki marked this pull request as draft June 15, 2021 12:06
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

:host {
width: 18px;
height: 18px;
width: 24px;
Copy link
Member Author

Choose a reason for hiding this comment

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

Aligned with https://github.com/PolymerElements/iron-icon/blob/master/iron-icon.js#L101-L102 (the visual tests were breaking with 18px defaults)

Comment on lines -107 to +112
--iron-icon-width: var(--lumo-icon-size-m);
--iron-icon-height: var(--lumo-icon-size-m);
width: var(--lumo-icon-size-m);
height: var(--lumo-icon-size-m);
Copy link
Member Author

Choose a reason for hiding this comment

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

vaadin-icon doens't have such a CSS variable but I assumed the intention is to affect the size of the same component that has theme="badge" icon=...

@tomivirkki tomivirkki marked this pull request as ready for review June 15, 2021 14:01
@tomivirkki tomivirkki requested review from jouni and vursen June 15, 2021 14:02
@tomivirkki tomivirkki merged commit 6588d96 into master Jun 16, 2021
@tomivirkki tomivirkki deleted the icon-specific-styles branch June 16, 2021 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-polymer Removing Polymer from Vaadin public APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[icon] iron-icon specific styling needs to apply to to vaadin-icon also

3 participants