Skip to content

Commit 19d92bf

Browse files
author
Manaday Mavani
committed
fix: css class on img tag instead picture
1 parent fc20aa6 commit 19d92bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/uc-image/uc-image.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,10 @@ export class UcImage {
137137

138138
render() {
139139
return (
140-
<picture class={this.dataClass}>
140+
<picture>
141141
<slot>{/* All <source /> nodes will be injected here... */}</slot>
142142
<img
143+
class={this.dataClass}
143144
data-src={this.dataSrc}
144145
alt={this.dataAlt}
145146
data-srcset={this.dataSrcset}

0 commit comments

Comments
 (0)