Skip to content

Commit

Permalink
Remove duplicate background color style
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrckvzn committed Jan 6, 2022
1 parent 5cbd9a2 commit f7edf3e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Services/ImageStyles.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,6 @@ public function main($loading = 'eager')
$this->baseStyle,
);

if (!!$this->backgroundColor) {
$style['background-color'] = $this->backgroundColor;
}

$style['opacity'] = (config('twill-image.js') && $loading === 'lazy') ? 0 : 1;

return $this->implodeStyles($style);
Expand Down

0 comments on commit f7edf3e

Please sign in to comment.