Add a new `hasInlineControls` option to `Image` component

Đang mở
#164 4 bình luận 1 reaction 1 người được giao Xem trên GitHub

@ncoetzer đang làm issue này rồi.

Từ ngày 27/10/2022.

  • #172 của @ncoetzer — đã đóng, không merge

Đánh giá

Issue này chưa được đánh giá.

Mô tả

[Component] Image [Type] Enhancement Needs Design Feedback

There often are instances where we either need to have multiple images in one block or where the toolbar replaces flow isn't ideal. For those cases, it would be great to also offer an inline solution for replacing and or removing images.

The idea here would be to add a new optional property to the Image component which is a boolean to enable this additional behavior.

When this boolean is present the block will show inline controls when the block is currently selected. These controls should be absolutely positioned so that they don't create any sort of layout shift.

These controls should also take into account whether the image is marked as optional or not. If it is optional the remove button should also be shown inline. Otherwise only the replace button should be shown.

Ngôn ngữ chính
TypeScript
Star
330
Fork
54
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của 10up/block-components

Tất cả issue của 10up/block-components

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.