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
note that defining variant as 'none' also doesn't work (note that it should but it is different).
{ key: 'id', stickyColumn: true, variant: 'none'}
Expected behavior
I would expect that the head-variant remains "dark", and does not change. setting variant to 'none'
almost worked, but it caused the column to be treated as transparent and stack and overlap.
Versions
BootstrapVue: 2.4.0
Bootstrap: 4.4.1
Vue: 2.6.11
Environment:
Device: laptop, phone
OS: windows, android
Browser: firefox, edge, chrome
Version: most recent versions
The text was updated successfully, but these errors were encountered:
ConorMurphy21
changed the title
bt-table head-variant lost when using sticky column
b-table head-variant lost when using sticky column
Apr 30, 2020
Interesting... there must be a bug in the variant detection for sticky column cells that are in the <b-thead> (and probably <b-tfoot>as well).
In Bootstrap v4.x we need to do quite a bit of "magic" to get the variants to work correctly when the table has sticky headers/columns, as the colors are applied to the row and not the cells (which is needed when the table can scroll). Bootstrap v5 will be fixing how table color variants are applied (they will apply to the cells instead of the rows or thead/tfoot/tbody)
We'll see what we can do to handle this issue with current Bootstrap v4.
Brief disclaimer, I am not usually a web dev, so this may be easily fixed. But I have looked at the documentation and this seems like a bug to me.
Describe the bug
head-variant for a column with sticky-column set to true is lost if the column does not define variant.
To reproduce the bug
I took this code directly from the documentation of sticky-columns and modified it.
note that defining variant as 'none' also doesn't work (note that it should but it is different).
Expected behavior
I would expect that the head-variant remains "dark", and does not change. setting variant to 'none'
almost worked, but it caused the column to be treated as transparent and stack and overlap.
Versions
Environment:
The text was updated successfully, but these errors were encountered: