I was recently asked if the navigationPane component could be styled to look like the below example. The answer is, obviously, yes. In this article, I will show how to skin a navigationPane of type Bar to meet a desired look and feel. Default navigationPane with hints=bar Styled navigationPane with hints=bar
First, determine if you want to set any background for your navigationPane and style the af|navigationPane-bar::body selector accordingly.
Then determine the style of the commandNavigationItem links inside of the navigationPane and set the af|navigationPane-bar::link selector accordingly. Set properties such as font-size, font-weight, color, padding.
Consider whether you want to skin the commanNavigationItem links for :hover or :selected. For instance, if you want a background image with an arrow to show the currently selected. (Note, in the below code snippet we are reusing an image that is delivered as a part of our ADF skins for simplicity of this code sample.)
Lastly, either replace the existing separator icon whose dimensions are 2px by 17px with a new image and set the height and width to your new image using the af|navigationPane-bar::separator-icon-style selector. Or, choose not to have a separator icon as the example shows below.
There are other changes that you can make to this component such as the style of the access key, the overflow indicators, and more states such as disabled. Check out the new ADF Skin Editor and discover the available selectors for all of ADF Faces components.