Re: [FlexJS] Overlapping default styles

2016-10-19 Thread Alex Harui
Seems ok to me.  If no tests blow up, should be ok to push.

On 10/19/16, 1:56 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
 wrote:

>Hi Alex,
>
>I made a change in a "feature/buttonbase-refactor"
>is tiny, but could potentially break things.
>
>This solves the problem, but I want to know your thinking about collateral
>damages in other code or examples.
>
>If you think is not what we need, I think I would go the route of
>extending
>from UIBase and replicate Button and TextButton in my component set.
>
>
>thanks
>
>
>2016-10-19 7:48 GMT+02:00 Alex Harui :
>
>>
>>
>> On 10/18/16, 4:47 PM, "carlos.rov...@gmail.com on behalf of Carlos
>>Rovira"
>> 
>> wrote:
>>
>> >I extended TextButton (ergo Button in the end), but I think carry all
>>its
>> >CSS is not what I expect...maybe I should not extend and replicate
>> >functionality extending UIBase
>>
>> Well, maybe.  I thought it would be easier to defeat these settings.  In
>> theory, if the mdl has CSS with these properties it would override the
>> properties in the defaults.css.  We could create a TextButtonBase in the
>> HTML.swc that you could extend and duplicate less code.
>> >
>> >I tried an empty defaults.css in my example project but nothing changes
>>
>> I guess that option does something different than I expected.  It sort
>>of
>> adds CSS files to the list, so there is no way to kick out some rules
>>you
>> don't want.  We could add a compiler option that really does reset all
>>of
>> the CSS in an app.
>>
>> -Alex
>>
>>
>
>
>-- 
>
>Carlos Rovira
>Director General
>M: +34 607 22 60 05
>http://www.codeoscopic.com
>http://www.avant2.es
>
>
>Este mensaje se dirige exclusivamente a su destinatario y puede contener
>información privilegiada o confidencial. Si ha recibido este mensaje por
>error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
>proceda a su destrucción.
>
>De la vigente Ley Orgánica de Protección de Datos (15/1999), le
>comunicamos
>que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
>S.A. La finalidad de dicho tratamiento es facilitar la prestación del
>servicio o información solicitados, teniendo usted derecho de acceso,
>rectificación, cancelación y oposición de sus datos dirigiéndose a
>nuestras
>oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
>necesaria.



Re: [FlexJS] Overlapping default styles

2016-10-19 Thread Carlos Rovira
Hi Alex,

I made a change in a "feature/buttonbase-refactor"
is tiny, but could potentially break things.

This solves the problem, but I want to know your thinking about collateral
damages in other code or examples.

If you think is not what we need, I think I would go the route of extending
from UIBase and replicate Button and TextButton in my component set.


thanks


2016-10-19 7:48 GMT+02:00 Alex Harui :

>
>
> On 10/18/16, 4:47 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
> 
> wrote:
>
> >I extended TextButton (ergo Button in the end), but I think carry all its
> >CSS is not what I expect...maybe I should not extend and replicate
> >functionality extending UIBase
>
> Well, maybe.  I thought it would be easier to defeat these settings.  In
> theory, if the mdl has CSS with these properties it would override the
> properties in the defaults.css.  We could create a TextButtonBase in the
> HTML.swc that you could extend and duplicate less code.
> >
> >I tried an empty defaults.css in my example project but nothing changes
>
> I guess that option does something different than I expected.  It sort of
> adds CSS files to the list, so there is no way to kick out some rules you
> don't want.  We could add a compiler option that really does reset all of
> the CSS in an app.
>
> -Alex
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es


Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


Re: [FlexJS] Overlapping default styles

2016-10-18 Thread Alex Harui


On 10/18/16, 4:47 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
 wrote:

>I extended TextButton (ergo Button in the end), but I think carry all its
>CSS is not what I expect...maybe I should not extend and replicate
>functionality extending UIBase

Well, maybe.  I thought it would be easier to defeat these settings.  In
theory, if the mdl has CSS with these properties it would override the
properties in the defaults.css.  We could create a TextButtonBase in the
HTML.swc that you could extend and duplicate less code.
>
>I tried an empty defaults.css in my example project but nothing changes

I guess that option does something different than I expected.  It sort of
adds CSS files to the list, so there is no way to kick out some rules you
don't want.  We could add a compiler option that really does reset all of
the CSS in an app.

-Alex



Re: [FlexJS] Overlapping default styles

2016-10-18 Thread Carlos Rovira
I extended TextButton (ergo Button in the end), but I think carry all its
CSS is not what I expect...maybe I should not extend and replicate
functionality extending UIBase

I tried an empty defaults.css in my example project but nothing changes

2016-10-19 1:03 GMT+02:00 Alex Harui :

> They are coming from the default.css in the HTML swc.  I guess because you
> have extended the HTML Button or there is one elsewhere in the app, maybe
> as a subcomponent.  Or maybe it is a bug and it shouldn't be there.
>
> You can specify a custom defaults.css file if you need to.
>
> -Alex
>
> On 10/18/16, 3:39 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
>  wrote:
>
> >Hi,
> >
> >I'm getting some css styles included in my example that I don't know how
> >to
> >avoid. In concrete are referred to Button:
> >
> >Button {
> >border : 1px solid #808080 ;
> >padding : 4px ;
> >background-color : #f8f8f8 ;
> >margin : 0px ;
> >border-radius : 2px ;
> >}
> >
> >
> >Button:hover {
> >border : 1px solid #808080 ;
> >padding : 4px ;
> >background-color : #e8e8e8 ;
> >}
> >
> >
> >Button:active {
> >border : 1px solid #808080 ;
> >padding : 4px ;
> >background-color : #d8d8d8 ;
> >}
> >
> >do you know how this is included in to my App.css and how to avoid them?
> >
> >Thanks
> >
> >
> >
> >--
> >Carlos Rovira
> >http://about.me/carlosrovira
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es


Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


Re: [FlexJS] Overlapping default styles

2016-10-18 Thread Alex Harui
They are coming from the default.css in the HTML swc.  I guess because you
have extended the HTML Button or there is one elsewhere in the app, maybe
as a subcomponent.  Or maybe it is a bug and it shouldn't be there.

You can specify a custom defaults.css file if you need to.

-Alex

On 10/18/16, 3:39 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
 wrote:

>Hi,
>
>I'm getting some css styles included in my example that I don't know how
>to
>avoid. In concrete are referred to Button:
>
>Button {
>border : 1px solid #808080 ;
>padding : 4px ;
>background-color : #f8f8f8 ;
>margin : 0px ;
>border-radius : 2px ;
>}
>
>
>Button:hover {
>border : 1px solid #808080 ;
>padding : 4px ;
>background-color : #e8e8e8 ;
>}
>
>
>Button:active {
>border : 1px solid #808080 ;
>padding : 4px ;
>background-color : #d8d8d8 ;
>}
>
>do you know how this is included in to my App.css and how to avoid them?
>
>Thanks
>
>
>
>-- 
>Carlos Rovira
>http://about.me/carlosrovira



[FlexJS] Overlapping default styles

2016-10-18 Thread Carlos Rovira
Hi,

I'm getting some css styles included in my example that I don't know how to
avoid. In concrete are referred to Button:

Button {
border : 1px solid #808080 ;
padding : 4px ;
background-color : #f8f8f8 ;
margin : 0px ;
border-radius : 2px ;
}


Button:hover {
border : 1px solid #808080 ;
padding : 4px ;
background-color : #e8e8e8 ;
}


Button:active {
border : 1px solid #808080 ;
padding : 4px ;
background-color : #d8d8d8 ;
}

do you know how this is included in to my App.css and how to avoid them?

Thanks



-- 
Carlos Rovira
http://about.me/carlosrovira