Resizing font icon in AbstractImageField [message #1806897] |
Fri, 17 May 2019 05:01  |
Eclipse User |
|
|
|
Hi,
By using the example of the PictureField field in the PersonForm class of the Contacts project, I try to perform a similar function in my application, i.e. display the icon from the "fontawesome" font. In addition, I would like to give it a dedicated color and size. For this purpose:
- In the * .less file file from the * .ui.html module I added such a CSS class:
.bigIcon {
font-size: 50px;
color: red;
}
- In the PictureField field definion I added implementation of this method:
@Override
protected String getConfiguredCssClass() {
return "bigIcon";
}
Everything works (i.e. a red icon is displayed) except for the size of the icon. It still has a default, small size. As if the css font-size attribute has been ignored...
Am I doing something wrong, or is there a different, more appropriate way to change the size of the icon in the above case?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05283 seconds