Today, I'm showing you a new accessibility feature that we'll be adding in the next Liferay Portal version.
As you know, making sites accessible is one of the hardest things to achieve on web development. In Liferay, we're always trying to improve on this area. For some time now, we've had a hidden Skip to Content link that shows on the first Tab stroke. This grants keyboard users a fast way to access the content and skip all the navigation elements on the top of the page.
For Liferay Portal 7.0, we wanted to take this idea a little bit further. Now, instead of just a link, we provide a small list of actions that are sequentially activated and allows a keyboard user to access specific parts of the page very quickly.
The good news is that, in addition to the out of the box shortcuts that some of the portlets will provide, you can use this in your themes to add shortcuts from your themes:
<@liferay.quick_access contentId="#main-content" />
String taglibOnClick = "Liferay.Util.focusFormField('#" + namespace + "keywords');";
<liferay-ui:quick-access-entry label="skip-to-search" onClick="<%= taglibOnClick %>" />
What do you think? Will you be adding quick access shortcuts to your developments?