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/ComboButton.html

    r9347 r9350  
    66        <tr> 
    77                <td     class="dijitStretch dijitButtonContents dijitButtonNode" 
    8                         tabIndex="${tabIndex}" dojoAttachPoint="containerNode;focusNode" 
     8                        tabIndex="${tabIndex}" 
    99                        dojoAttachEvent="onklick:_onButtonClick" 
    1010                        waiRole="button"> 
    11                         ${label} 
     11                        <div class="dijitInline ${iconClass}"></div> 
     12                        <span class="dijitButtonContents" dojoAttachPoint="containerNode;focusNode" id="${id}_label">${label}</span> 
    1213                </td> 
    1314                <td class='dijitReset dijitRight dijitButtonNode dijitDownArrowButton'