alleyinteractive / alleyinteractive/wp-curate
Remove `supportsLevel` in post-title's `TagName` condition
- Linguagem predominante
- PHP
- Estrelas
- 11
- Forks
- 3
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
### Description of the bug
Setting `supportsLevel: false` should only remove the dropdown. However, this condition forces a paragraph in the editor, but renders the default (`h3`) on the frontend. Ideally the attribute would only be used to conditionally render the heading selector.
https://github.com/alleyinteractive/wp-curate/blob/5a315bfcb8aa157da108b89df61e3e954565ccf8/blocks/post-title/edit.tsx#L58
### Steps To Reproduce
1. Add a `wp-curate/query` block
2. Switch to code view and add `{"supportsLevel":false}` to the `wp-curate/post-title` attributes
3. Exit the code editor
4. Observe the post title is a paragraph
5. Save and view the frontend
6. Observe the post title is an h3
### Additional Information
_No response_
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.