-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Add Header (h1 - h6) tags to layout xml htmlTags Allowed types #23742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Header (h1 - h6) tags to layout xml htmlTags Allowed types #23742
Conversation
Hi @furan917. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Static test build fails because the file does not match the set code standards before my editing it. |
Hey @orlangur just looking to check if this is in review/needs further steps/further discussion or anything in case I can help with anything! |
@magento run all tests |
@orlangur could you explain why this PR was moved to On hold and what is the current status? |
…d types Update integration test to check all types of containers
…d types Add article as allowed html tag
Hi @ihor-sviziev, thank you for the review.
|
Hi @furan917, thank you for your contribution! |
Description (*)
The point of this PR is simply to allow H1 to H6 tags to be used in the layout XML as htmlTags so that users and theme creators can set titles with proper header tags using the XML. As an example a creator create a H2 container with a
Magento\Framework\View\Element\Text
block inside it to easily create titles where they need.Manual testing scenarios (*)
1.add this block inside any referenceContainer you want
Questions or comments
I am not sure if there was a reason these weren't included so there may be something I am not thinking about but it seemed like it could be a helpful addition to devs and creators.
This is my first time contributing to M2 so please let me know if something can be done better or if I have missed anything.
There is a failure in the code sniffer for the Container.php I have changed but these failures, I think, are not introduced by me?
Contribution checklist (*)