[MGNLUI-214] It must be possible to instantiate an Icon with no font-size so that parent css classes will operate on it. Created: 23/Nov/12 Updated: 10/Mar/21 Resolved: 10/Mar/21 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | widgets |
| Affects Version/s: | 5.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Christopher Zimmermann | Assignee: | Unassigned |
| Resolution: | Obsolete | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Description |
|
Currently if you create an info.magnolia.ui.vaadin.icon.Icon with a constructor that does not define font size, then font size is set to a default value. This means its not possible to create an icon with the class that does not have an inline font size. This is a problem because we often which to declare the size of a font via css stylesheets, which is now not possible because the inline style will always win. (case in point is the IconFont which is rendered in the actionbar preview area. We'd like to set a css class in stylesheets but instead we set it to 100 in ActionBar.setPreview() |