Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image: Consolidate crop ratios #22817

Merged
merged 8 commits into from
Jun 8, 2020

Conversation

ajlende
Copy link
Contributor

@ajlende ajlende commented Jun 2, 2020

Description

This removes the portrait/landscape button in favor of a simpler, unified aspect ratio menu with both portrait and landscape ratios in the same menu.

How has this been tested?

Add image block, open crop, view the unified aspect ratio menu.

Screenshots

image

Types of changes

Fixes #22567

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
  • I've updated all React Native files affected by any refactorings/renamings in this PR.

@ajlende ajlende self-assigned this Jun 2, 2020
@ajlende ajlende added [Block] Image Affects the Image Block [Type] Enhancement A suggestion for improvement. labels Jun 2, 2020
@ajlende ajlende mentioned this pull request Jun 2, 2020
6 tasks
@ajlende ajlende changed the title Consolidate crop ratios Image: Consolidate crop ratios Jun 2, 2020
@@ -85,3 +85,13 @@
.richimage-toolbar__control {
padding: 6px;
}

.richimage__aspect-title {
Copy link
Member

Choose a reason for hiding this comment

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

Is there no component for this? I see a similar thing in the settings:

Screenshot 2020-06-06 at 17 05 41

Copy link
Contributor Author

@ajlende ajlende Jun 6, 2020

Choose a reason for hiding this comment

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

That's where it is! I though I had seen it somewhere, but I couldn't remember where and I couldn't find a component for it, so I assumed I had imagined it. Looks like it's a prop, not a component.

I was going to open another PR to add that to the storybook quick, but would you rather see it under the MenuGroup component or the DropdownMenu component?

@ajlende ajlende force-pushed the fix/consolidate-crop-ratios branch from 03e622c to a2b67d3 Compare June 6, 2020 16:45
@ajlende ajlende requested a review from ellatrix June 8, 2020 15:59
@ellatrix
Copy link
Member

ellatrix commented Jun 8, 2020

Just needs a rebase now :)

@ellatrix ellatrix merged commit 206c5f1 into WordPress:master Jun 8, 2020
@github-actions github-actions bot added this to the Gutenberg 8.4 milestone Jun 8, 2020
@ajlende ajlende deleted the fix/consolidate-crop-ratios branch June 8, 2020 18:32
This was referenced Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Image Affects the Image Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consolidate portrait and landscape image editing aspect ratios
2 participants