Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.9.2
-
Fix Version/s: None
-
Component/s: Zend_View
-
Labels:None
-
Tags:
Description
The reason why I'd like to see the option to wrap the label with an element is because when a user is trying to style their navigation menu output with image sprites, currently, you would need JavaScript to remove the innerHTML from the <a> element to hide the label.
Here's a link to the same technique I'm using on my sites: http://stylemeltdown.com/2007/10/22/image-sprite-navigation-with-css/
Notice the <span> element inside the <a> element. This is an advantage because you can use CSS to hide the span and it still allows the content to be indexed and used with screen readers.
It would be nice to be able to specify an option which allows me to wrap the label. Specifically, it would be nice if I could just say array('labelWrapper' => 'span') or something much like that.
Assigning this issue to Robin Skoglund as he's the maintainer (and creator) of Zend_Navigation.