myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Omar Elprince <general.equal....@gmail.com>
Subject Re: [Trinidad] tr:inputText styling
Date Thu, 05 Feb 2009 16:01:31 GMT
Intestinally, using either af|inputText:disabled af|inputText::content  
or af|inputText:disabled::content are changing the font-weight to bold  
but the color is not changing.


On Feb 5, 2009, at 10:41 AM, Andrew Robinson wrote:

> I think it should be:
>
> af|inputText:disabled af|inputText::content {
>  color: black
> }
>
> Reasoning:
>
> 1) disabled state is on the inputText.
> 2) the af|inputText::content is a actually one element, not "the
> content under the input text", but rather "the content for the input
> text"
>
> This is because "af|inputText::content" is rendered as
> class="af_inputText_content" (in uncompressed mode) I believe.
>
> When you get confused, the best thing to do is turn off content
> compression and then use FireBug to look at the DOM to see the CSS
> classes that are added.
>
> -Andrew
>
> On Thu, Feb 5, 2009 at 8:26 AM, Omar Elprince
> <general.equal.700@gmail.com> wrote:
>> Hi,
>>
>> I'm having a problem in styling a disabled input field: <tr:inputText
>> value="#{myBacking.myValue}" disabled="true" />. when the inputText  
>> is
>> disabled, I'm trying to change the text color to be black instead  
>> of gray.
>>
>> in my css i used
>>
>> af|inputText:disabled::content {
>>       color:black;
>> }
>>
>> That does not work. Does any one have an experience with that case?
>>
>> Or it might be a bug that i need to report.
>>
>> --Omar
>>


Mime
View raw message