Skip to content

fix(common): Don't warn about image distortion if fill mode is enabled#47824

Closed
atcastle wants to merge 1 commit intoangular:mainfrom
atcastle:fill-aspect-ratio-warning
Closed

fix(common): Don't warn about image distortion if fill mode is enabled#47824
atcastle wants to merge 1 commit intoangular:mainfrom
atcastle:fill-aspect-ratio-warning

Conversation

@atcastle
Copy link
Contributor

This PR disables the image distortion warning (when rendered aspect ratio is noticeably different than intrinsic) when in fill mode. The warning doesn't make sense with fill mode, where the user may want the image to stretch, crop or letterbox, depending on their styling. Test is e2e only because this warning only fires after the image is loaded.

@pullapprove pullapprove bot requested a review from dylhunn October 20, 2022 17:50
@atcastle atcastle changed the title fix(common): Don't warn about image distortion is fill mode is enabled fix(common): Don't warn about image distortion if fill mode is enabled Oct 20, 2022
@AndrewKushnir AndrewKushnir requested review from AndrewKushnir and removed request for dylhunn October 20, 2022 18:14
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

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

@atcastle looks good, just a small request to add a comment into the code (see below). Thank you.

@AndrewKushnir AndrewKushnir added action: review The PR is still awaiting reviews from at least one requested reviewer area: common Issues related to APIs in the @angular/common package target: rc This PR is targeted for the next release-candidate common: image directive labels Oct 20, 2022
@ngbot ngbot bot modified the milestone: Backlog Oct 20, 2022
The image distortion warning (when rendered aspect ratio is noticeably different than intrinsic) doesn't make sense with fill mode, where the user may want the image to stretch, crop or letterbox.
@atcastle atcastle force-pushed the fill-aspect-ratio-warning branch from b8a6d84 to a1eec0d Compare October 20, 2022 21:46
@angular-robot angular-robot bot requested a review from AndrewKushnir October 20, 2022 21:47
@AndrewKushnir AndrewKushnir added action: presubmit The PR is in need of a google3 presubmit and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 20, 2022
@AndrewKushnir
Copy link
Contributor

Presubmit.

@AndrewKushnir AndrewKushnir added action: merge The PR is ready for merge by the caretaker and removed action: presubmit The PR is in need of a google3 presubmit labels Oct 20, 2022
@dylhunn
Copy link
Contributor

dylhunn commented Oct 20, 2022

This PR was merged into the repository by commit 6b9b472.

@dylhunn dylhunn closed this in 6b9b472 Oct 20, 2022
dylhunn pushed a commit that referenced this pull request Oct 20, 2022
#47824)

The image distortion warning (when rendered aspect ratio is noticeably different than intrinsic) doesn't make sense with fill mode, where the user may want the image to stretch, crop or letterbox.

PR Close #47824
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 20, 2022
trekladyone pushed a commit to trekladyone/angular that referenced this pull request Feb 1, 2023
angular#47824)

The image distortion warning (when rendered aspect ratio is noticeably different than intrinsic) doesn't make sense with fill mode, where the user may want the image to stretch, crop or letterbox.

PR Close angular#47824
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: common Issues related to APIs in the @angular/common package common: image directive target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants