Skip to content

Commit aec5b40

Browse files
committed
turn on strip clipping by default
1 parent 6e738da commit aec5b40

File tree

3 files changed

+59
-41
lines changed

3 files changed

+59
-41
lines changed

R/theme-defaults.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ theme_grey <- function(base_size = 11, base_family = "",
205205
panel.ontop = FALSE,
206206

207207
strip.background = element_rect(fill = "grey85", colour = NA),
208-
strip.clip = "inherit",
208+
strip.clip = "on",
209209
strip.text = element_text(
210210
colour = "grey10",
211211
size = rel(0.8),
@@ -490,7 +490,7 @@ theme_void <- function(base_size = 11, base_family = "",
490490
legend.box.margin = rel(0),
491491
legend.box.spacing = unit(0.2, "cm"),
492492
legend.ticks.length = rel(0.2),
493-
strip.clip = "inherit",
493+
strip.clip = "on",
494494
strip.text = element_text(size = rel(0.8)),
495495
strip.switch.pad.grid = rel(0.5),
496496
strip.switch.pad.wrap = rel(0.5),
@@ -621,7 +621,7 @@ theme_test <- function(base_size = 11, base_family = "",
621621
panel.ontop = FALSE,
622622

623623
strip.background = element_rect(fill = "grey85", colour = "grey20"),
624-
strip.clip = "inherit",
624+
strip.clip = "on",
625625
strip.text = element_text(
626626
colour = "grey10",
627627
size = rel(0.8),

tests/testthat/_snaps/facet-/facet-wrap-with-omitted-inner-axis-labels.svg

Lines changed: 56 additions & 20 deletions
Loading

tests/testthat/_snaps/facet-layout/axes-are-positioned-correctly-in-non-table-layout.svg

Lines changed: 0 additions & 18 deletions
Loading

0 commit comments

Comments
 (0)