Skip to content

Commit

Permalink
fix: backgroundOpacity controls image opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
bbohlender committed Mar 28, 2024
1 parent aa72e7e commit 74b7126
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/uikit/src/components/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,13 @@ export type ImageFitProperties = {
}

const materialPropertyTransformation: PropertyTransformation = (key, value, hasProperty, setProperty) => {
if (key === 'opacity') {
setProperty('backgroundOpacity', value)
return
switch (key) {
case 'backgroundOpacity':
case 'backgroundColor':
return
case 'opacity':
setProperty('backgroundOpacity', value)
return
}
panelAliasPropertyTransformation(key, value, hasProperty, setProperty)
}
Expand Down

0 comments on commit 74b7126

Please sign in to comment.