Improvement: Rework Hn Structure#524
Conversation
Hlavtox
left a comment
There was a problem hiding this comment.
Hi @tblivet, I love fixing the semantic strucutre. ❤️
What I don't agree with is adding the new first-title to sixth-title. In my opinion, it only brings extra data to transfer and h1 to h6 classes are understandable enough.
|
Hi @Hlavtox 🙂 I agree over the fact that it brings extra data, the initial approach was to separate the semantic Hn naming and the CSS class naming to avoid this type of code : |
|
Hello, I understand your concerns, it is true that a lot of CSS variables have been added in this PR, however from my point of view this makes it easier to modify the theme settings by any dev without having to recompile what is really an asset and a good practice! |
|
Hi, I also don't like the idea to have more unneeded classes for headings. |
| > | ||
| <div class="step__title js-step-title"> | ||
| <h1 class="step__title-left h3"> | ||
| {if isset($step_is_current) && $step_is_current} |
There was a problem hiding this comment.
I think it always exists so you can do this:
| {if isset($step_is_current) && $step_is_current} | |
| {if $step_is_current eq true} |
|
thanks @tblivet 👏🏻 |
.h4on a<h2>tag for example that can look confusing. In another hand, those modifications will help theme devs to edit global titles styles in an easier way.