Skip to content

Conversation

@strausr
Copy link
Contributor

@strausr strausr commented Jul 14, 2020

When the style is passed into cl-image by the user it overwrites the placeholder image's style of position: absolute opacity 0. This causes the placeholder to jump out of place.
This fix comes to ensure that the placeholder style is reserved only when the placeholder is in view while keeping the passed in style values.

@strausr strausr requested a review from patrick-tolosa July 14, 2020 15:04
des = fixture.debugElement.queryAll(By.directive(CloudinaryImage));
});

it('should have style opacity and position when style is passed', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also add a check that the style that was passed exists? (check that we didn't discard the passed value)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alright will update

@asisayag2
Copy link
Contributor

@strausr , please add a description to the PR, providing the required context for being able to review it.

@strausr strausr merged commit aec7488 into master Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants