[Zope3-dev] Re: [AdaptersForMenuItems] Disabling and menu item icons

Casey Duncan casey at zope.com
Tue Jan 13 09:42:50 EST 2004


On Tue, 13 Jan 2004 12:40:01 +0100
Tonico Strasser <contact_tonico at yahoo.de> wrote:
[snip]
> > Icons might make disabled() problematic since it should dim the
> > icon, although most recent browsers support some form or alpha
> > channel image filtering that could accomplish this client-side. At
> > worst, you could specify two icons, one for enabled and one for
> > disabled if needed.
> 
> Please consider using css, it's more elegant and more accessible.
> 
> <li class="disabled" id="item-xyz356">
>    <a href="/">Item</a>
> </li>
> 
> No <img> tag needed.

The view would be in change of generating the markup and css based on
the menu configuration. It could generate any sort of markup desired,
with or without image tags.

I agree that is is suboptimal to need to supply a specific image for
disabled menu items. So long as browser support is deemed good enough, I
wholly support not having it. Never underestimate the lame-ness of
browser implementation, however.

-Casey



More information about the Zope3-dev mailing list