You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The theme.json caption element is referencing to the HTML element figcaption. This is confusing, because there is a HTML caption element that can be used in tables.
I think it's best to stay as close to existing standards as possible.
People editing the theme.json directly are most likely familiar with HTML tags. So they know <a> is a link element. But someone new to Gutenberg may not know that 'link' must be used to target the <a> tag.
Plus: why not use the HTML-elements naming? Since more human readable names can be used in the editor, e.g. h1 > Heading 1
If the 'link' element is to remain, I would suggest adding this as an alias to the (to be added) theme.json 'a' element.
Gutenberg element
HTML element
Is same
link
a
❌
heading
non existing
✔️
h1
h1
✅
h2
h2
✅
h3
h3
✅
h4
h4
✅
h5
h5
✅
h6
h6
✅
button
button
✅
caption
figcaption
❌
cite
cite
✅
The text was updated successfully, but these errors were encountered:
Give Gutenberg theme.json elements the same name as the HMTL element (if exist).
Why?
caption
element is referencing to the HTML elementfigcaption
. This is confusing, because there is a HTML caption element that can be used in tables.<a>
is a link element. But someone new to Gutenberg may not know that'link'
must be used to target the<a>
tag.h1
> Heading 1If the
'link'
element is to remain, I would suggest adding this as an alias to the (to be added) theme.json'a'
element.The text was updated successfully, but these errors were encountered: