Skip to content

fix: body styling with columns = everything() can miss columns when a multi-column stub is present#2113

Merged
rich-iannone merged 6 commits intomasterfrom
fix-body-styling-with-multicolumn-stub
Jan 21, 2026
Merged

fix: body styling with columns = everything() can miss columns when a multi-column stub is present#2113
rich-iannone merged 6 commits intomasterfrom
fix-body-styling-with-multicolumn-stub

Conversation

@rich-iannone
Copy link
Copy Markdown
Member

@rich-iannone rich-iannone commented Jan 21, 2026

This PR fixes an issue where a table that has multiple stub columns, the styling is not applied to all columns even though columns = everything() is used in cells_body(). With this fix, the following gt code now works correctly:

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()
    )
  ) 
image

Fixes: #2094

@rich-iannone rich-iannone merged commit 8344ddf into master Jan 21, 2026
11 checks passed
@rich-iannone rich-iannone deleted the fix-body-styling-with-multicolumn-stub branch January 21, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

styling not applied to all columns with multi column stub

1 participant