-
Notifications
You must be signed in to change notification settings - Fork 89
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
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.