Skip to content
Merged
32 changes: 32 additions & 0 deletions documentation/guides/migrating-from-v8-to-v9.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,16 @@ We replaced a few of the following filter function instances with color tokens i
| `font-family()`<br>`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 |
Expand Down Expand Up @@ -309,6 +319,16 @@ For `<border-width>` 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.
Expand Down Expand Up @@ -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 |
Expand Down