You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Geoff Callender (JIRA)" <ji...@apache.org> on 2012/10/18 16:06:02 UTC

[jira] [Updated] (TAP5-2014) Zone highlight leaves behind an explicit background-color which overrides css background-color

     [ https://issues.apache.org/jira/browse/TAP5-2014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Geoff Callender updated TAP5-2014:
----------------------------------

    Description: 
I have a table row which is also a zone with a highlight effect (i.e., t:update="highlight"). I have given the row a hover effect with css, e.g.

    tr { background-color: #fff; }
    tr:hover { background-color: #eee; }

but the hover effect stops working once the zone updates. 

The problem is that the zone's highlight effect leaves behind an explicit background-color style, e.g.

    <tr style="background-color: #fff;"/>

which overrides the css rules.

The fix would be to modify the zone highlighting code to finish by removing the explicit background-color that it added.

  was:
I have a table row which is also a zone with a highlight effect (i.e., t:update="highlight"). In css I give the row a hover effect, e.g.

    tr { background-color: #fff; }
    tr:hover { background-color: #eee; }

but the hover effect stops working once the zone updates. 

The problem is that the zone's highlight effect leaves behind an explicit background-color style, e.g.

    <tr style="background-color: #fff;"/>

which overrides the css rules.

The fix would be for the zone highlight to finish by removing the explicit background-color that it added.

    
> Zone highlight leaves behind an explicit background-color which overrides css background-color
> ----------------------------------------------------------------------------------------------
>
>                 Key: TAP5-2014
>                 URL: https://issues.apache.org/jira/browse/TAP5-2014
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.6
>            Reporter: Geoff Callender
>
> I have a table row which is also a zone with a highlight effect (i.e., t:update="highlight"). I have given the row a hover effect with css, e.g.
>     tr { background-color: #fff; }
>     tr:hover { background-color: #eee; }
> but the hover effect stops working once the zone updates. 
> The problem is that the zone's highlight effect leaves behind an explicit background-color style, e.g.
>     <tr style="background-color: #fff;"/>
> which overrides the css rules.
> The fix would be to modify the zone highlighting code to finish by removing the explicit background-color that it added.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira