-
Notifications
You must be signed in to change notification settings - Fork 220
styling not applied to all columns with multi column stub #2094
Description
Prework
- Read and agree to the code of conduct and contributing guidelines.
- If there is already a relevant issue, whether open or closed, comment on the existing thread instead of posting a new issue.
Description
When a table has multiple row name cols the styling is not applied to the final column
Reproducible example
library(gt)
library(dplyr)
gt::exibble |>
select(char, fctr, date, row) |>
gt(rowname_col = c("char", "fctr" )) |>
tab_style(
style = cell_borders(
sides = c("top","bottom"),
color = "transparent"
),
locations= list(
cells_body(
columns = tidyselect::everything(),
rows = tidyselect::everything()
),
cells_stub(),
cells_row_groups()
)
)
Expected result
Should have removed the cell borders from all columns, however the final column still has borders.
Session info
R version 4.4.1 (2024-06-14)
Platform: aarch64-apple-darwin20
Running under: macOS 26.2
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: Europe/London
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] dplyr_1.1.4 gt_1.2.0
loaded via a namespace (and not attached):
[1] digest_0.6.37 R6_2.6.1 fastmap_1.2.0 tidyselect_1.2.1 magrittr_2.0.3
[6] glue_1.8.0 tibble_3.2.1 htmltools_0.5.8.1 pkgconfig_2.0.3 generics_0.1.4
[11] lifecycle_1.0.4 xml2_1.3.8 cli_3.6.5 sass_0.4.10 vctrs_0.6.5
[16] withr_3.0.2 compiler_4.4.1 rstudioapi_0.17.1 tools_4.4.1 pillar_1.10.2
[21] rlang_1.1.6 fs_1.6.6