-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Change to border-width in 5.3 affects table negatively #38980
Comments
Hey there, it seems like the issue you describe here was a part of an unintended feature in v5.2.3 as #37999 explains. I think it might be a part of the v6 as this kind of feature might be breaking. Meanwhile, you can set: .table-custom {
--bs-border-width: 2px; // or .125rem
--bs-table-border-color: #000; // or var(--bs-dark) or w/e fits your needs
} and use it on your |
In versions 5.3.0 and 5.3.1, there was a change in the behavior of the directional "border-bottom" property when applied in combination with other directional borders (e.g., "border-top," "border-left," "border-right"). This change caused the directional "border-bottom" to stop functioning as expected in some cases. To demonstrate this issue, here's an example code snippet for a table with CSS styles applied: HTML: <table class="my-table">
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</table> CSS (version 5.3.1 and earlier):
In versions 5.3.0 and 5.3.1, the above code may cause the "border-bottom" to stop rendering properly, and it might appear as if there is no "border-bottom" for the cells. To fix this issue, you can use the "border-collapse" property on the table element, which can resolve the problem with directional borders: CSS (with fix):
By setting the "border-collapse" property to "collapse," the directional "border-bottom" should work as expected, and you will see all borders rendered correctly for the table cells. |
Prerequisites
Describe the issue
In 5.3.0 and 5.3.1, a change to the border-* CSS caused a change in behaviour.
When applied in table table/tr/td in combination of directional "border-bottom", the directional stopped functioning.
Reduced test cases
Heres's exemples :
5.2.3: https://codepen.io/olivierlabbe/pen/poQQeWr
5.3.1: https://codepen.io/olivierlabbe/pen/PoxxpEP
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
5.3.1
The text was updated successfully, but these errors were encountered: