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

Tonico Strasser contact_tonico at yahoo.de
Tue Jan 13 10:15:43 EST 2004


Casey Duncan wrote:

> 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.

What I try to say: I would prefer to get an id instead of an icon. With 
the id I could create an url to an icon or a an id attribute for styling 
with css. Both could be 'disabled' or 'active'.

Tonico




More information about the Zope3-dev mailing list