Skip to content

Commit

Permalink
Merge pull request #122 from jvroberts/master
Browse files Browse the repository at this point in the history
  • Loading branch information
jthomasmock authored Apr 4, 2024
2 parents 639d68a + eec933b commit 3ac7f6e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
5 changes: 3 additions & 2 deletions R/gt_theme_538.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ gt_theme_538 <- function(gt_object, ..., quiet = FALSE) {
weight = 200
)
),
locations = gt::cells_column_labels(
columns = gt::everything()
locations = list(
gt::cells_column_labels(),
gt::cells_stubhead()
)
) %>%
tab_style(
Expand Down
5 changes: 4 additions & 1 deletion R/gt_theme_dark.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ gt_theme_dark <- function(gt_object, ...) {
font = google_font("Source Sans Pro"),
transform = "uppercase"
),
locations = cells_column_labels(everything())
locations = list(
cells_column_labels(),
cells_stubhead()
)
) %>%
tab_style(
style = cell_text(
Expand Down
5 changes: 4 additions & 1 deletion R/gt_theme_nytimes.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ gt_theme_nytimes <- function(gt_object, ...) {
font = google_font("Source Sans Pro"),
transform = "uppercase"
),
locations = cells_column_labels(everything())
locations = list(
gt::cells_column_labels(),
gt::cells_stubhead()
)
) %>%
tab_style(
style = cell_text(
Expand Down
5 changes: 4 additions & 1 deletion R/gt_theme_pff.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ gt_theme_pff <- function(gt_object, ..., divider, spanners, rank_col) {
weight = px(2.5)
)
),
locations = gt::cells_column_labels()
locations = list(
gt::cells_column_labels(),
gt::cells_stubhead()
)
)
}

0 comments on commit 3ac7f6e

Please sign in to comment.