diff --git a/documentation/guides/migrating-from-v8-to-v9.md b/documentation/guides/migrating-from-v8-to-v9.md index f7980e6a68b..10844a9944b 100644 --- a/documentation/guides/migrating-from-v8-to-v9.md +++ b/documentation/guides/migrating-from-v8-to-v9.md @@ -275,6 +275,16 @@ We replaced a few of the following filter function instances with color tokens i | `font-family()`
`font-family($family: base)` | `--p-font-family-sans` | | `font-family($family: 'monospace')` | `--p-font-family-mono` | +#### `hidden-when-printing()` + +Replace any instance of `@include hidden-when-printing;` with the following code + +```scss +@media print { + display: none !important; +} +``` + #### `high-contrast-border()` | Mixin | Replacement Value/Token | @@ -309,6 +319,16 @@ For `` instances that are hard coded values, see if you can replac | `ms-high-contrast-color('button-text-background')` | `buttonFace` | | `ms-high-contrast-color('background')` | `window` | +#### `print-hidden()` + +Replace any instance of `@include print-hidden;` with the following code + +```scss +@media print { + display: none !important; +} +``` + #### `px()` This function has been deprecated, but the definition can be copied and used locally. @@ -369,6 +389,18 @@ padding: 0; list-style: none; ``` +#### `when-not-printing()` + +| Mixin | Replacement Value/Token | +| ---------------------------- | ----------------------- | +| `@include when-not-printing` | `@media not print` | + +#### `when-printing()` + +| Mixin | Replacement Value/Token | +| ------------------------ | ----------------------- | +| `@include when-printing` | `@media print` | + #### `z-index()` | Function | Replacement Value/Token |