You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But, what should be done if we would like to let some padding to every single list item? I suppose that according to the BEM good practices should be something like:
This discussion was converted from issue #111 on September 12, 2022 19:49.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Let's say we have a very simple block:
So the css could be:
But, what should be done if we would like to let some padding to every single list item? I suppose that according to the BEM good practices should be something like:
So the css should be:
My questions are: Is it so dangerous to add a modifier to the block and style the
<li>
directly? for instance:And then:
Is it necessary to add the
class="list-unstyled__item"
? Do not you think that's excessive?Thanks
Beta Was this translation helpful? Give feedback.
All reactions