You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "BG RCI (Created) (JIRA)" <de...@myfaces.apache.org> on 2012/03/16 10:21:40 UTC
[jira] [Created] (TOBAGO-1101) Firefox 11.0; Button
disabled-css-Style fails
Firefox 11.0; Button disabled-css-Style fails
---------------------------------------------
Key: TOBAGO-1101
URL: https://issues.apache.org/jira/browse/TOBAGO-1101
Project: MyFaces Tobago
Issue Type: Bug
Components: Build
Affects Versions: 1.0.39
Environment: Firefox 11.0
Reporter: BG RCI
Button element:
The private css-definition ".tobago-button-default" (e.g.: color: rgb( 0, 73, 148) ) is not overridden by the Tobago-css-definition ".tobago-button-disabled".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TOBAGO-1101) Firefox 11.0; Button
disabled-css-Style fails
Posted by "Udo Schnurpfeil (Commented) (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13234205#comment-13234205 ]
Udo Schnurpfeil commented on TOBAGO-1101:
-----------------------------------------
I can't reproduce. Or do I missunderstanding?
I've just checked the demo page at http://localhost:8080/tobago-example-demo/faces/overview/intro.jsp (Tobago 1.0.39):
The most left button at the bottom is grey (disabled), the other ones are dark red, this is what I've exprected.
> Firefox 11.0; Button disabled-css-Style fails
> ---------------------------------------------
>
> Key: TOBAGO-1101
> URL: https://issues.apache.org/jira/browse/TOBAGO-1101
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Build
> Affects Versions: 1.0.39
> Environment: Firefox 11.0
> Reporter: BG RCI
>
> Button element:
> The private css-definition ".tobago-button-default" (e.g.: color: rgb( 0, 73, 148) ) is not overridden by the Tobago-css-definition ".tobago-button-disabled".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Issue Comment Edited] (TOBAGO-1101) Firefox 11.0; Button
disabled-css-Style fails
Posted by "Udo Schnurpfeil (Issue Comment Edited) (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13236706#comment-13236706 ]
Udo Schnurpfeil edited comment on TOBAGO-1101 at 3/23/12 4:06 PM:
------------------------------------------------------------------
When I got your example correctly, this works as designed (and defined by CSS).
When an element has 2 classes e.g. <button class="tobago-button-default tobago-button-disabled">, and you have a property set multiple times for both classes, then the order in the HTML document is relevant to "who wins". The order of the class names in the HTML element doesn't matter.
In your case: The definition of your personal .tobago-button-default {color: #004994;} is later than that from the tobago theme (so you can override it)
Result: If you overrite a tobago-button-default property which is also defined in tobago-button-disabled, you also have to define it in your personal style file. Same is for tobago-button-error etc.
was (Author: lofwyr):
When I got your example correctly, this works as designed (and defined by CSS).
When an element has 2 classes e.g. <button class="tobago-button-default tobago-button-disabled">, and you have a property set multiple times for both classes, then the order in the HTML document is relevant to "who wins". The order of the class name in the HTML element doesn't matter.
In your case: The definition of your personal .tobago-button-default {color: #004994;} is later than that from the tobago theme (so you can override it)
Result: If you overrite a tobago-button-default property which is also defined in tobago-button-disabled, you also have to define it in your personal style file. Same is for tobago-button-error etc.
> Firefox 11.0; Button disabled-css-Style fails
> ---------------------------------------------
>
> Key: TOBAGO-1101
> URL: https://issues.apache.org/jira/browse/TOBAGO-1101
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Build
> Affects Versions: 1.0.39
> Environment: Firefox 11.0
> Reporter: BG RCI
>
> Button element:
> The private css-definition ".tobago-button-default" (e.g.: color: rgb( 0, 73, 148) ) is not overridden by the Tobago-css-definition ".tobago-button-disabled".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Issue Comment Edited] (TOBAGO-1101) Firefox 11.0; Button
disabled-css-Style fails
Posted by "Udo Schnurpfeil (Issue Comment Edited) (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13234205#comment-13234205 ]
Udo Schnurpfeil edited comment on TOBAGO-1101 at 3/21/12 8:50 AM:
------------------------------------------------------------------
I can't reproduce. Or do I missunderstanding?
I've just checked the demo page at http://localhost:8080/tobago-example-demo/faces/overview/intro.jsp (Tobago 1.0.39, Firefox 11.0):
The most left button at the bottom is grey (disabled), the other ones are dark red, this is what I've exprected.
was (Author: lofwyr):
I can't reproduce. Or do I missunderstanding?
I've just checked the demo page at http://localhost:8080/tobago-example-demo/faces/overview/intro.jsp (Tobago 1.0.39):
The most left button at the bottom is grey (disabled), the other ones are dark red, this is what I've exprected.
> Firefox 11.0; Button disabled-css-Style fails
> ---------------------------------------------
>
> Key: TOBAGO-1101
> URL: https://issues.apache.org/jira/browse/TOBAGO-1101
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Build
> Affects Versions: 1.0.39
> Environment: Firefox 11.0
> Reporter: BG RCI
>
> Button element:
> The private css-definition ".tobago-button-default" (e.g.: color: rgb( 0, 73, 148) ) is not overridden by the Tobago-css-definition ".tobago-button-disabled".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TOBAGO-1101) Firefox 11.0; Button
disabled-css-Style fails
Posted by "Udo Schnurpfeil (Commented) (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13236708#comment-13236708 ]
Udo Schnurpfeil commented on TOBAGO-1101:
-----------------------------------------
Did you test the behavour with other browsers?
> Firefox 11.0; Button disabled-css-Style fails
> ---------------------------------------------
>
> Key: TOBAGO-1101
> URL: https://issues.apache.org/jira/browse/TOBAGO-1101
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Build
> Affects Versions: 1.0.39
> Environment: Firefox 11.0
> Reporter: BG RCI
>
> Button element:
> The private css-definition ".tobago-button-default" (e.g.: color: rgb( 0, 73, 148) ) is not overridden by the Tobago-css-definition ".tobago-button-disabled".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (TOBAGO-1101) Firefox 11.0; Button
disabled-css-Style fails
Posted by "Udo Schnurpfeil (Resolved) (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Udo Schnurpfeil resolved TOBAGO-1101.
-------------------------------------
Resolution: Not A Problem
I close this issue, because I think it works as designed. If you nevertheless think its a bug, do not hasitate to reopen it.
> Firefox 11.0; Button disabled-css-Style fails
> ---------------------------------------------
>
> Key: TOBAGO-1101
> URL: https://issues.apache.org/jira/browse/TOBAGO-1101
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Build
> Affects Versions: 1.0.39
> Environment: Firefox 11.0
> Reporter: BG RCI
>
> Button element:
> The private css-definition ".tobago-button-default" (e.g.: color: rgb( 0, 73, 148) ) is not overridden by the Tobago-css-definition ".tobago-button-disabled".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Issue Comment Edited] (TOBAGO-1101) Firefox 11.0; Button
disabled-css-Style fails
Posted by "Udo Schnurpfeil (Issue Comment Edited) (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13236706#comment-13236706 ]
Udo Schnurpfeil edited comment on TOBAGO-1101 at 3/23/12 4:05 PM:
------------------------------------------------------------------
When I got your example correctly, this works as designed (and defined by CSS).
When an element has 2 classes e.g. <button class="tobago-button-default tobago-button-disabled">, and you have a property set multiple times for both classes, then the order in the HTML document is relevant to "who wins". The order of the class name in the HTML element doesn't matter.
In your case: The definition of your personal .tobago-button-default {color: #004994;} is later than that from the tobago theme (so you can override it)
Result: If you overrite a tobago-button-default property which is also defined in tobago-button-disabled, you also have to define it in your personal style file. Same is for tobago-button-error etc.
was (Author: lofwyr):
When I got your example correctly, this works as designed (and defined by CSS).
When an element has 2 classes e.g. <button class="tobago-button-default tobago-button-disabled">, and you have a property set multiple times for both classes, then the order in the HTML document is relevant to "who wins".
In your case: The definition of your personal .tobago-button-default {color: #004994;} is later than that from the tobago theme (so you can override it)
Result: If you overrite a tobago-button-default property which is also defined in tobago-button-disabled, you also have to define it in your personal style file. Same is for tobago-button-error etc.
> Firefox 11.0; Button disabled-css-Style fails
> ---------------------------------------------
>
> Key: TOBAGO-1101
> URL: https://issues.apache.org/jira/browse/TOBAGO-1101
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Build
> Affects Versions: 1.0.39
> Environment: Firefox 11.0
> Reporter: BG RCI
>
> Button element:
> The private css-definition ".tobago-button-default" (e.g.: color: rgb( 0, 73, 148) ) is not overridden by the Tobago-css-definition ".tobago-button-disabled".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TOBAGO-1101) Firefox 11.0; Button
disabled-css-Style fails
Posted by "Udo Schnurpfeil (Commented) (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13236706#comment-13236706 ]
Udo Schnurpfeil commented on TOBAGO-1101:
-----------------------------------------
When I got your example correctly, this works as designed (and defined by CSS).
When an element has 2 classes e.g. <button class="tobago-button-default tobago-button-disabled">, and you have a property set multiple times for both classes, then the order in the HTML document is relevant to "who wins".
In your case: The definition of your personal .tobago-button-default {color: #004994;} is later than that from the tobago theme (so you can override it)
Result: If you overrite a tobago-button-default property which is also defined in tobago-button-disabled, you also have to define it in your personal style file. Same is for tobago-button-error etc.
> Firefox 11.0; Button disabled-css-Style fails
> ---------------------------------------------
>
> Key: TOBAGO-1101
> URL: https://issues.apache.org/jira/browse/TOBAGO-1101
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Build
> Affects Versions: 1.0.39
> Environment: Firefox 11.0
> Reporter: BG RCI
>
> Button element:
> The private css-definition ".tobago-button-default" (e.g.: color: rgb( 0, 73, 148) ) is not overridden by the Tobago-css-definition ".tobago-button-disabled".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TOBAGO-1101) Firefox 11.0; Button
disabled-css-Style fails
Posted by "BG RCI (Commented) (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13234307#comment-13234307 ]
BG RCI commented on TOBAGO-1101:
--------------------------------
We have created a bgrci.css file with item:
.tobago-button-default {
color: #004994;
}
(Blue text)
After this we created a tc:style-element in the overview.tag
<?xml…
<jsp:root…
<f:view…
<tc:page..
<tc:style style="style/bgrci.css" />
With the IE-Browser looks everything’s fine:
Default Button-Text: Blue
Disable Button-Text: Gray
With the Firefox 11.0 is the Text-Style as follows:
Default Butten-Text: Blue
Disable Button-Text: Blue
(Debugging with Firebug 1.9.1)
HTML:
<button class="tobago-button-default tobago-button-disabled"
style="height:20px; width:75px; "
onclick=""
disabled="disabled"
id="page:_idJsp117"
name="page:_idJsp117"
type="button">Vorschau</button>
Styles:
element.style {
height: 20px;
width: 75px;
}
.tobago-button-default {
background-image: url("../image/button-bg.gif");
color: #004994;
} bgrci.css (Zeile 252)
.tobago-button-disabled {
color: graytext;
}
> Firefox 11.0; Button disabled-css-Style fails
> ---------------------------------------------
>
> Key: TOBAGO-1101
> URL: https://issues.apache.org/jira/browse/TOBAGO-1101
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Build
> Affects Versions: 1.0.39
> Environment: Firefox 11.0
> Reporter: BG RCI
>
> Button element:
> The private css-definition ".tobago-button-default" (e.g.: color: rgb( 0, 73, 148) ) is not overridden by the Tobago-css-definition ".tobago-button-disabled".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira