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

Abierto
#164 4 comentarios 1 reacción 1 asignado Ver en GitHub

@ncoetzer ya está trabajando en esto.

Desde el 27/10/2022.

  • #172 de @ncoetzer — cerrado sin fusionar

Evaluación

Este issue todavía no se ha evaluado.

Descripción

[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.

Lenguaje dominante
TypeScript
Estrellas
330
Forks
54
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de 10up/block-components

Todos los issues de 10up/block-components

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.