Skip to content

Commit

Permalink
Fix: Wrong condition on cover block dimRatioToClass. (#55356)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta authored Oct 13, 2023
1 parent b2ac3a5 commit 6756a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/cover/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function mediaPosition( { x, y } = DEFAULT_FOCAL_POINT ) {
}

export function dimRatioToClass( ratio ) {
return ratio === 50 || ! ratio === undefined
return ratio === 50 || ratio === undefined
? null
: 'has-background-dim-' + 10 * Math.round( ratio / 10 );
}
Expand Down

1 comment on commit 6756a0d

@github-actions
Copy link

Choose a reason for hiding this comment

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

Flaky tests detected in 6756a0d.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6511244195
📝 Reported issues:

Please sign in to comment.