[MGNLUI-4366] Sticker widget: fix font for Linux distros and allow appending mgnl version info Created: 12/Feb/18 Updated: 16/Apr/20 Resolved: 23/Mar/18 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | magnolia-ui-vaadin-common-widgets |
| Affects Version/s: | 5.6.2 |
| Fix Version/s: | 5.6.3 |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Martin Drápela | Assignee: | Saimir Gasa |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | quickwin | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| 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)
|
||||||||
| Documentation update required: |
Yes
|
||||||||
| Date of First Response: | |||||||||
| Sprint: | Saigon 138, Basel 139 | ||||||||
| Story Points: | 1 | ||||||||
| Description |
|
1) The FONT: The font declaration used in the sticker Verdana, serif; in magnolia-ui-vaadin-common-widgets/src/main/resources/VAADIN/themes/admincentraltheme/sticker.scss is insufficient for most Debian-derived desktops (*buntus etc.) and will be rendered as follows: This can be fixed by removing the following font-family from the .v-sticker definition. The Helvetica, sans-serif font will be inherited from the .v-app font definition. font-family: Verdana, serif; The result of the font in the sticker should look like this: |
| Comments |
| Comment by Mikaël Geljić [ 16/Feb/18 ] |
|
That's not really about fonts, should rather be Verdana, sans-serif;, not Verdana, serif; |
| Comment by Saimir Gasa [ 20/Mar/18 ] |
|
In order to be able to access the magnoliaVersion the following build plugin needs to be configured in the pom.xml file:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<directory>src/main/webapp/</directory>
<filtering>true</filtering>
<includes>
<include>WEB-INF/config/default/magnolia.properties</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
Then magnoliaVersion value can be configured and accessed in magnolia.properties file as such: ${magnoliaVersion}. |