Skip to content

Commit 1593bcc

Browse files
committed
Image accessibility
1 parent 621e22d commit 1593bcc

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

apps/demos/Demos/DataGrid/AIColumn/jQuery/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
window.AzureOpenAI = AzureOpenAI;
1515
</script>
16-
<script src="../../../../node_modules/devextreme-dist/js/dx.ai-integration.js"></script>
1716
<script src="data.js"></script>
17+
<script src="../../../../node_modules/devextreme-dist/js/dx.ai-integration.js"></script>
1818
<script src="index.js"></script>
1919
<link rel="stylesheet" type="text/css" href="styles.css" />
2020
</head>

apps/demos/Demos/DataGrid/AIColumn/jQuery/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ $(() => {
100100
src: `../../../../images/vehicles/image_${ID}.png`,
101101
alt: `${TrademarkName} ${Name}`,
102102
tabindex: 0,
103+
role: 'button',
104+
'aria-haspopup': 'dialog',
105+
'aria-label': `${TrademarkName} ${Name} - press Enter for image info`,
103106
});
104107

105108
const showPopup = () => {

apps/demos/Demos/TreeList/AIColumn/jQuery/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ $(() => {
110110
src: `../../../../images/vehicles/image_${ID}.png`,
111111
alt: `${TrademarkName} ${Name}`,
112112
tabindex: 0,
113+
role: 'button',
114+
'aria-haspopup': 'dialog',
115+
'aria-label': `${TrademarkName} ${Name} - press Enter for image info`,
113116
});
114117

115118
const showPopup = () => {

0 commit comments

Comments
 (0)