Closed jvroberts closed 7 months ago
Several themes, including gt_theme_538() and gt_theme_nytimes(), don't properly style a custom tab_stubhead() label to match the rest of the column label styling.
gt_theme_538()
gt_theme_nytimes()
tab_stubhead()
library(gt) library(gtExtras) exibble |> gt(rowname_col = "row") |> tab_stubhead(label = "stubhead") |> gt_theme_538()
"stubhead" label on first column should be styled to match the rest of the column header styles.
Specifically adding the cell styling to gt_theme_538.R on lines 76:78 seems to fix it:
gt_theme_538.R
locations = list ( gt::cells_column_labels(), gt::cells_stubhead() )
Description
Several themes, including
gt_theme_538()
andgt_theme_nytimes()
, don't properly style a customtab_stubhead()
label to match the rest of the column label styling.Reproducible example
Expected result
"stubhead" label on first column should be styled to match the rest of the column header styles.