Misused i element replaced with neutral span#1668
Conversation
|
@pepelsbey will you please also update tests (see https://travis-ci.org/bem/bem-components/jobs/79723658)? And it'd be great if you create an issue for this change following contribution guide. |
@tadatuta, I expected to find |
|
@pepelsbey Fix is on the way |
|
Speaking of |
can't say for sure so will be grateful if you do |
|
So, should I cancel this PR and file a proper issue and another PR? |
|
Just create an issue, copy description of the changes there and connect PR with it, that'll be enough. |
|
Looks like there are stil 30 falling tests: https://travis-ci.org/bem/bem-components/jobs/79736711 That's because of BH templates (e.g. https://github.com/bem/bem-components/blob/v2/common.blocks/icon/icon.bh.js#L7). |
|
Thanks for the hint, I’ll make sure that all tests are fine. |
|
@pepelsbey please try to rebase the PR, hope it'll pass afterwards |
|
well, tests are green :) |
|
@tadatuta, I hope I did it right |
|
Ehm... "Merge branch" means you did it wrong ;-( I'd do now: and then commit again your changes and force push to the branch linked to this PR. |
|
@zxqfox, thanks, it did the trick. |
|
👍 Hope tests will pass. ;-) |
Misused i element replaced with neutral span
|
@pepelsbey thank you! |
|
@tadatuta, thank you for accepting it, and I’ve learned a lot during this PR :) |
|
I'm totally agree. If we still don't use native semantics, so we just should avoid deliberately wrong usage.
Already removed and will be merged soon. |
|
@aristov, thank you for following up on that, I just got completely lost on vacation. |
<i>element has a clear semantic role accoring to HTML spec:Using it for icons or any other decoration should be considered as bad practice. Bootstrap framework for example clearly made its choice to remove all non-semantic elements from decoration and starting from v2.1.0
<i class="icon"></i>has been replaced with<span>and starting from v3.2.0 all<b class="caret"></b>nonsense is gone as well.Please show that you care about what you recommend developers to use.