The documentation states that "All table styles are inherited in Bootstrap 4", which already feels like a horrible decision for me, because it's completly unintuitive. And for worse it even passes styling to native
tags that do not reference any bootstrap classes.
<table class="table-bordered table-striped">
<table>
...
</table>
</table>
The above example would cause the inner table to be both bordered and striped, just like the containing table. Using table-borderless on the inner table it is possible to get rid of the border but I haven't found a way to prevent the passing of the striped styling.
Is this intended behaviour? It seems really buggy and user-unfriendly to force styling upon child elements which don't use bootstrap classes without even giving a possibility to neutralize the inherited styling. (Maybe there is a possibility to overwrite stylings like table-striped, but I haven't found any classes like "table-nostripe" that would overwrite the striped effect).
The documentation states that "All table styles are inherited in Bootstrap 4", which already feels like a horrible decision for me, because it's completly unintuitive. And for worse it even passes styling to native
tags that do not reference any bootstrap classes.The above example would cause the inner table to be both bordered and striped, just like the containing table. Using table-borderless on the inner table it is possible to get rid of the border but I haven't found a way to prevent the passing of the striped styling.
Is this intended behaviour? It seems really buggy and user-unfriendly to force styling upon child elements which don't use bootstrap classes without even giving a possibility to neutralize the inherited styling. (Maybe there is a possibility to overwrite stylings like table-striped, but I haven't found any classes like "table-nostripe" that would overwrite the striped effect).