mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 18:36:35 +00:00
Add alt tags to camera
This commit is contained in:
parent
612a876199
commit
8d84b3c63a
@ -36,8 +36,8 @@
|
||||
}
|
||||
</style>
|
||||
<template>
|
||||
<img src='[[cameraFeedSrc]]' class='camera-feed' hidden$='[[!imageLoaded]]'
|
||||
on-load='imageLoadSuccess' on-error='imageLoadFail'>
|
||||
<img src='[[cameraFeedSrc]]' class='camera-feed' hidden='[[!imageLoaded]]'
|
||||
on-load='imageLoadSuccess' on-error='imageLoadFail' alt='[[stateObj.entityDisplay]]'>
|
||||
<div class='caption'>
|
||||
[[stateObj.entityDisplay]]
|
||||
<template is='dom-if' if='[[!imageLoaded]]'>
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
<template>
|
||||
<img class='camera-image' src="[[computeCameraImageUrl(hass, stateObj)]]"
|
||||
on-load='imageLoaded' />
|
||||
on-load='imageLoaded' alt='[[stateObj.entityDisplay]]' />
|
||||
</template>
|
||||
</dom-module>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user