You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or more directly: gt_table %>% opt_row_striping(row_striping = FALSE)
Both produce tables in HTML that still have row striping. This seems to be because a table-striped is being applied regardless and the Quarto Bootswatch css applies formatting to all objects with that tag. Manually removing that tag from the resultant HTML file fixes the issue, but modifying the properties applied to that tag with CSS is complex and beyond the CSS knowledge of many R users.
The text was updated successfully, but these errors were encountered:
gt doesn't seem to respect the row_striping options when rendering through Quarto to HTML.
For example:
`data <- data.frame(
Name = c("John", "Jane", "Doe"),
Age = c(28, 34, 45),
Occupation = c("Engineer", "Doctor", "Artist")
)
Render the table using gt
gt_table <- gt(data)
gt_table %>% opt_stylize(style = 1, color = "blue", add_row_striping = FALSE)`
Or more directly:
gt_table %>% opt_row_striping(row_striping = FALSE)
Both produce tables in HTML that still have row striping. This seems to be because a
table-striped
is being applied regardless and the Quarto Bootswatch css applies formatting to all objects with that tag. Manually removing that tag from the resultant HTML file fixes the issue, but modifying the properties applied to that tag with CSS is complex and beyond the CSS knowledge of many R users.The text was updated successfully, but these errors were encountered: