Bug 123465
| Summary: | Label does not properly render when color and weight attributes are set | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Web Application Framework | Reporter: | Brett Prucha <pruchaba_bah> |
| Component: | ui | Assignee: | ccm-bugs-list |
| Status: | CLOSED EOL | QA Contact: | Jon Orris <jorris> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | nightly | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-03-27 16:48:40 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Description of problem: If you create a label with both the color and weight attributes set [setColor() and setFontWeight()]only the color attribute will be rendered. The weight attribute will be dropped. The problem is in label.xsl where <xsl:template match="bebop:label[@color!='' and @weight!='']" should come after <xsl:template match="bebop:label[@weight!='']" and <xsl:template match="bebop:label[@color!='']" When the weight and color come before, the color template gets matched because it is less specific and comes after the weight and weight/color templates.