Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-5121

Explore extending WP Core Blocks by importing the block-library directly

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Could have Could have
    • None
    • None
    • Gutenberg, Technical Debt

      Currently, we are copying files from Wordpress repositories to override functionality on the Core WP blocks (e.g.: Button, Table). Thus, we are creating mini-forks of Wordpress components into our repo.

      We are just copying the files we need, but these files actually import a lot of stuff from the Wordpress modules. As this can probably get outdated, maybe we can include the wordpress/block-library module and extend those files by importing them in our components instead of directly forking these files.

      I tried doing so but I ran into some compiler issues, I suspect the Babel setup may be interfering, I added more technical details in this secret gist.

      Tasks:

      • Put some time aside to test for an alternative solution to core block overrides, by  extending core blocks from the block-library instead of copying the files.
      • If none is found or the solution is overkill maybe we can discard this ticket. 

       

            Unassigned Unassigned
            pcuadrad Pablo Cuadrado (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: