row is visible behind sticky table header
See original GitHub issueDescribe the bug
When using the sticky header I can see when scrolling part of the background row, and it looks kind of bad.
My table is defined as:
<b-table primary-key="id" :fields="fields" :items="nodes" :filter="filter" head-variant="light" sticky-header="77.3vh" show-empty hover bordered>
Also, setting the height to something like calc(100vh-100px)
does not work.
Expected behavior
The background row should be completely hidden behind the header. I only found this to be an issue on chrome.
Versions
Libraries:
- BootstrapVue: ^2.0.0-rc.28
- Bootstrap: ^4.3.1
- Vue: ^2.6.10
Environment:
- OS: Windows 10
- Browser: Chrome 76.0.3809.132
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
A table with both a sticky header and a sticky first column
It's pretty easy to make the header of a table stick to the top of the screen while scrolling through a bunch or...
Read more >How to Create a Table with a Fixed Header and Scrollable Body
In this tutorial, find some methods of creating an HTML table with a fixed header and scrollable body. Here, we suggest using some...
Read more >Sticky Table Header in Vuetify.js | by Jarek Lipski - Medium
One solution to this problem is to always keep the table header visible when scrolling, and there are a couple of ways we...
Read more >Table Sticky Header - Bootstrap Table
Table Sticky Header. Table Sticky Header extension of Bootstrap Table. This is an extension which provides a sticky header for the table when...
Read more >Fixed Table Headers - Adrian Roselli
The different z-index values help ensure your column headers sit in front of your row headers. Otherwise the visible row header will look...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
no-border-collapse
does fix the issue on v2.0.1 but it also makes the borders double as thick… taking thebordered
off is not an option. Any workaround?That would make an assumption that all people are using the same default styles for the tables. You may need to target the header cell’s bottom border, not just the thead. Bootstrap v5 will be making some changes to how styles are applied to tables.