jthomasmock / gtExtras

A Collection of Helper Functions for the gt Package.
https://jthomasmock.github.io/gtExtras/
Other
195 stars 27 forks source link

Problems in gt_theme_pff() #74

Closed jesbrz closed 2 years ago

jesbrz commented 2 years ago

Hi.

I don't think this is a bug, but when I try to use tab_options in gt_theme_pff some options don't work.

brw <- data.frame(Name = c("Jon", "Bill", "Maria", "Ben", "Tina"),
                 Age = c(23, 41, 32, 58, 26))

gt(brw) %>% 
        tab_header(title = md("Fake table in two seconds"),
                   subtitle = "Name and age") %>% 
        tab_source_note(md("**Table:** User | **From:** MPT")) %>% 
        gt_theme_pff() %>% 
        tab_options(column_labels.font.size = 16, table.font.size = 15, heading.title.font.size = 24) 

If I change table.font.size values, the table not increases the font size but the source_note yes. And if I increase column_labels.font.size, the title is bigger. I don't know if I am doing it wrong or if it is "pff" that is not responding properly.

Example1 is the table "as is", with the previous code.

Example2 the table with table.font.size = 36

I want to increase the body of the table to something more visible.

Thanks for this great add-on.

example1 example2