You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Maurice Amsellem (JIRA)" <ji...@apache.org> on 2013/11/11 11:38:20 UTC
[jira] [Resolved] (FLEX-33795) CSS style does not applied for spark
Alert with standard spark namespace (@namespace s
"library://ns.adobe.com/flex/spark";)
[ https://issues.apache.org/jira/browse/FLEX-33795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maurice Amsellem resolved FLEX-33795.
-------------------------------------
Resolution: Not A Problem
> CSS style does not applied for spark Alert with standard spark namespace (@namespace s "library://ns.adobe.com/flex/spark";)
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: FLEX-33795
> URL: https://issues.apache.org/jira/browse/FLEX-33795
> Project: Apache Flex
> Issue Type: Bug
> Affects Versions: Apache Flex 4.10.0
> Reporter: Maxim Jurat
> Labels: Alerts, css, spark
>
> Steps to reproduce:
> 1. Create css file like this:
> /* CSS file */
> @namespace s "library://ns.adobe.com/flex/spark";
> @namespace mx "library://ns.adobe.com/flex/mx";
> s|Alert
> {
> skinClass: ClassReference("skins.SimpleAlertSkin");
> }
> 2. Create custome Alert skin.
> 3. Create simple application to test like this one:
> <?xml version="1.0"?>
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
> <fx:Script><![CDATA[
> import spark.components.Alert;
> ]]></fx:Script>
> <s:Button click="Alert.show('Hello, world')" label="Say Hello"/>
> <fx:Style source="styles.css"/>
> </s:Application>
> Workaround:
> Use another namespace:
> /* CSS file */
> @namespace s "library://ns.adobe.com/flex/spark";
> @namespace sparkComponents "spark.components.*";
> @namespace mx "library://ns.adobe.com/flex/mx";
> sparkComponents|Alert
> {
> skinClass: ClassReference("skins.SimpleAlertSkin");
> }
--
This message was sent by Atlassian JIRA
(v6.1#6144)