[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: PNG File image-2018-02-12-12-46-23-687.png     PNG File image-2018-02-12-13-04-32-182.png     PNG File image-2018-02-12-13-10-19-500.png    
Issue Links:
relation
is related to MGNLUI-3840 Distinguish instances visually in Adm... Closed
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:
While preparing a 5.6.2 RN entry about MGNLUI-3840, I've noticed the same issue as the one reported for ONDEMAND-755:

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}.

Generated at Mon Feb 12 09:15:55 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.