• Resolved strarsis

    (@strarsis)


    The Advanced Table block uses <td> elements as cells in the table header (<thead>) instead of <th> elements. <th> elements usually make more sense semantically.
    The core/table block also uses <th> instead of <td> for the table header cells, hence conversion between these two block types would be easier as less CSS selectors are needed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author htmgarcia

    (@htmgarcia)

    Hi @strarsis,
    about the cells, the table uses th for the thead and td for tbody. That’s the expected approach. If I’m missing any detail, please let me know.

    Regards

    Thread Starter strarsis

    (@strarsis)

    @htmgarcia: Alright, the issue appears in the Gutenberg editor, not in the frontend:
    For the editor <td>s are used in the <thead>. This requires more selectors than necessary to replicate the frontend styling in the editor.

    Plugin Author htmgarcia

    (@htmgarcia)

    That’s correct. While editing you see a different tag for the thead cells. However the saved result uses the correct tags.

    We’ll take in consideration your feedback about using the right tags on edit mode for styling purposes.

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Advanced Table: Table header th instead td’ is closed to new replies.