Show
Ignore:
Timestamp:
06/28/07 03:49:50 (19 months ago)
Author:
bill
Message:

Specify icons in buttons via CSS rather than <img> tag.
The CSS for icons is either in tundra.css (for the editor icons),
or in the customer's css file (for custom icons).

Toolbar buttons have an icon and text defined but you can control which shows up
via CSS rules (the text needs to show up if dijit_a11y is set). Haven't created
those rules yet though, so for now both icon and text show up.

Need to doublecheck a11y stuff; I think I might have broken it.

Refs #3455.

When MenuItem? is converted to extend Button it will inherit this method of
setting icons.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/form/templates/DropDownButton.html

    r9347 r9350  
    33        ><div class='dijitRight'> 
    44        <button tabIndex="${tabIndex}" class="dijitStretch dijitButtonNode" type="${type}" id="${id}" name="${name}" alt="${alt}" 
    5         dojoAttachPoint="popupStateNode;focusNode" waiRole="button" waiState="haspopup-true;labelledby-${id}_label" 
    6                 ><span class="dijitButtonContents" dojoAttachPoint="containerNode" id="${id}_label">${label}</span 
     5                ><div class="dijitInline ${iconClass}"></div 
     6                ><span class="dijitButtonContents"      dojoAttachPoint="containerNode;popupStateNode;focusNode" 
     7                 waiRole="button" waiState="haspopup-true;labelledby-${id}_label" id="${id}_label">${label}</span 
    78                ><span class='dijitA11yDownArrow'>&#9660;</span> 
    89        </button>