diff --git a/packages/block-library/src/code/style.scss b/packages/block-library/src/code/style.scss new file mode 100644 index 00000000000000..3961cfbe8e7d96 --- /dev/null +++ b/packages/block-library/src/code/style.scss @@ -0,0 +1,5 @@ +// Provide a minimum of overflow handling. +.wp-block-code code { + white-space: pre-wrap; + overflow-wrap: break-word; +} diff --git a/packages/block-library/src/style.scss b/packages/block-library/src/style.scss index f4cfe22788b872..899f51a4b688a4 100644 --- a/packages/block-library/src/style.scss +++ b/packages/block-library/src/style.scss @@ -8,6 +8,7 @@ @import "./buttons/style.scss"; @import "./calendar/style.scss"; @import "./categories/style.scss"; +@import "./code/style.scss"; @import "./columns/style.scss"; @import "./cover/style.scss"; @import "./embed/style.scss";