hangoutsslackgmailskypefacebook-workplaceoutlookemailmicrosoft-teamsdiscordmessengercustom-servicesmacoslinuxwindowsinboxwhatsappicloudtweetdeckhipchattelegram
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
602 B
28 lines
602 B
/** */ |
|
Ext.define('Ext.aria.Img', { |
|
override: 'Ext.Img', |
|
|
|
getElConfig: function() { |
|
var me = this, |
|
config; |
|
|
|
config = me.callParent(); |
|
|
|
// Screen reader software requires images to have tabIndex |
|
config.tabIndex = -1; |
|
|
|
return config; |
|
}, |
|
|
|
onRender: function() { |
|
var me = this; |
|
|
|
//<debugger> |
|
if (!me.alt) { |
|
Ext.log.warn('For ARIA compliance, IMG elements SHOULD have an alt attribute'); |
|
} |
|
//</debugger> |
|
|
|
me.callParent(); |
|
} |
|
}); |