Skip to content

fix: allow cells_stub() to target all stub components#2102

Merged
rich-iannone merged 2 commits intomasterfrom
fix-cells-stub
Jan 14, 2026
Merged

fix: allow cells_stub() to target all stub components#2102
rich-iannone merged 2 commits intomasterfrom
fix-cells-stub

Conversation

@rich-iannone
Copy link
Copy Markdown
Member

This PR fixes an issue where stub components weren't all being targeted (i.e., in a multicolumn stub). Now, this example works properly:

exibble |>
  gt(
    rowname_col = c("group", "char")
  )|>
  tab_style(
    style = list(
      cell_fill(color = "lightblue")
    ),
    locations = list(cells_stub(columns = NULL))
  )
image

Previously, only the left column of the two-column stub was styled.

Fixes: #2100

@rich-iannone rich-iannone merged commit ea3c089 into master Jan 14, 2026
11 checks passed
@rich-iannone rich-iannone deleted the fix-cells-stub branch January 14, 2026 20:20
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.

cells_stub(columns = NULL) does not target all stub columns

1 participant