Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Customize CSS af:button component. Focus property

santiago_ncOct 21 2013 — edited Dec 13 2013

I need to change the style for af:button when it takes the focus (tab key) but I couldn't get it.

I have create my custom skin extending skyros.v1.desktop.

This is part of my css file:

af|button:focus {

    color: #333333;

    border-top: 1px solid #E2CB9B;

    border-right: 1px solid #E2CB9B;

    border-bottom: 1px solid #D4BB87;

    border-left: 1px solid #E2CB9B;

}

@agent mozilla {

    af|button:focus {

        background-image: -moz-linear-gradient(top, #FFE4A8 0%, #FFD475 100%);

    }

}

@agent webkit {

    af|button:focus {

        background-image: -webkit-linear-gradient(top, #FFE4A8 0%, #FFD475 100%);

    }

}

@agent ie {

    af|button:focus {

        background-image: -ms-linear-gradient(top, #FFE4A8 0%, #FFD475 100%);

    }

}

The error is that, button never takes the focus property when  the user push the key tab.

I have tested with chrome browser, and If I toogle the focus event for the div, It works.

This is the html code generated for the af:button component.

<div id="ptb1:r1:0:cb2" class="xg5 p_AFTextOnly" _afrgrp="0"><a href="#" onclick="this.focus();return false" class="xg7"><span class="xgf">Acceder</span></a></div>

Development: jdeveloper 12c (12.1.2.0).

This post has been answered by santiago_nc on Dec 13 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 10 2014
Added on Oct 21 2013
3 comments
1,813 views