WIP: Icon Box/Rich text: heading tag in the content is set to p with Persian fallback (canvas)

Browser: Chrome 128.0.6613.85
OS: Windows

Hi bricks team,

I want to display “term name” with H1 tag in icon box element. I also use fallback in these DD Tags. But the problem is that if I use the Persian phrase in the fallback, the fallback is displayed in the Builder with the p tag. While I have set H1 for it. But in the front end it is rendered with the H1 tag. After I change the persian phrase to english, the p tag is changed to H1.

This problem only occurs in the icon box element.

thanks

Hi Hosein,
Thanks so much for your report!

I reproduced the issue and added it to the bug tracker.

Best regards,
timmse

1 Like

@HOSEIN How did you add the <h1> to the text editor? Via the “Visual” tab?

If added through the “Text”, which is what you have to use when adding HTML to your text, it works fine for me:

Hi @thomas,

Yes, Via the “Visual” tab. But please note that there is this problem when I use Persian words in fallback.
If I write the fallback in English and reload the builder, there is no problem.