attempt to fix icon accessibility

deepsource-autofix-76c6eb20
Dan Gowans 2024-10-31 11:10:33 -04:00
parent f83936224e
commit e0fb571d4d
2 changed files with 4 additions and 4 deletions

View File

@ -54,13 +54,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
</td><td class="has-text-centered"> </td><td class="has-text-centered">
${map.mapLatitude && map.mapLongitude ${map.mapLatitude && map.mapLongitude
? `<span data-tooltip="Has Geographic Coordinates"> ? `<span data-tooltip="Has Geographic Coordinates">
<i class="fas fa-map-marker-alt" aria-label="Has Geographic Coordinates"></i> <i class="fas fa-map-marker-alt" role="img" aria-label="Has Geographic Coordinates"></i>
</span>` </span>`
: ''} : ''}
</td><td class="has-text-centered"> </td><td class="has-text-centered">
${(map.mapSVG ?? '') === '' ${(map.mapSVG ?? '') === ''
? '' ? ''
: '<span data-tooltip="Has Image"><i class="fas fa-image" aria-label="Has Image"></i></span>'} : '<span data-tooltip="Has Image"><i class="fas fa-image" role="img" aria-label="Has Image"></i></span>'}
</td><td class="has-text-right"> </td><td class="has-text-right">
<a href="${los.urlPrefix}/lots?mapId=${map.mapId}">${map.lotCount}</a> <a href="${los.urlPrefix}/lots?mapId=${map.mapId}">${map.lotCount}</a>
</td> </td>

View File

@ -93,7 +93,7 @@ declare const exports: Record<string, unknown>
${ ${
map.mapLatitude && map.mapLongitude map.mapLatitude && map.mapLongitude
? `<span data-tooltip="Has Geographic Coordinates"> ? `<span data-tooltip="Has Geographic Coordinates">
<i class="fas fa-map-marker-alt" aria-label="Has Geographic Coordinates"></i> <i class="fas fa-map-marker-alt" role="img" aria-label="Has Geographic Coordinates"></i>
</span>` </span>`
: '' : ''
} }
@ -101,7 +101,7 @@ declare const exports: Record<string, unknown>
${ ${
(map.mapSVG ?? '') === '' (map.mapSVG ?? '') === ''
? '' ? ''
: '<span data-tooltip="Has Image"><i class="fas fa-image" aria-label="Has Image"></i></span>' : '<span data-tooltip="Has Image"><i class="fas fa-image" role="img" aria-label="Has Image"></i></span>'
} }
</td><td class="has-text-right"> </td><td class="has-text-right">
<a href="${los.urlPrefix}/lots?mapId=${map.mapId}">${map.lotCount}</a> <a href="${los.urlPrefix}/lots?mapId=${map.mapId}">${map.lotCount}</a>