flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33795) CSS style does not applied for spark Alert with standard spark namespace (@namespace s "library://ns.adobe.com/flex/spark";)
Date Thu, 17 Oct 2013 06:04:41 GMT

    [ https://issues.apache.org/jira/browse/FLEX-33795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13797640#comment-13797640
] 

Alex Harui commented on FLEX-33795:
-----------------------------------

I believe the Spark Alert is in the "experimental" namespace even though it is in the spark.components
package so you may need to declare and use that namespace in the CSS.

> 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)

Mime
View raw message