etchteam / eslint

Our shared eslint config
ISC License
0 stars 0 forks source link

No styling in HTML #16

Closed DanWebb closed 1 year ago

DanWebb commented 1 year ago

Don't use <b> or <i>.

They have no semantic meaning.

They're ignored by screenreaders.

A <b> could be styled to be not bold. So the fact it visually appears as bold by default doesn't mean anything in html, styles should be handled by CSS, strong is still relevant as it still has meaning if it's styled as not bold.

<strong> tags are intended to be used for emphasis so have semantic meaning, but we should be careful to not use them for visual styling for the same reason.

DanWebb commented 1 year ago

I'm not sure this can be implemented as a lint rule, it might need to be added as an additional style guide maybe in the readme

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: