From 2c52dcb8ae0ef6e4811575fb190b9c55460baf10 Mon Sep 17 00:00:00 2001 From: Andre Devay Date: Sun, 29 Nov 2026 20:20:06 -0300 Subject: [PATCH] docs(multiple): fix links to theming guide sections that no longer exist The form field overview links to `/guide/theming#using-component-color-variants` and the Material 2 theming guide links to `/guide/theming#theme-your-own-components-using-a-material-3-theme`. Both sections were removed from the theming guide when it was rewritten for the `mat.theme` API in v19, so the links land at the top of an unrelated page. The content they describe (the `$color-variant` parameter and reading values from a theme created with `mat.define-theme`) still lives in the v18 theming guide, which the current theming guide already points to for `define-theme` based themes. Point both links there. --- guides/material-2.md | 2 +- src/material/form-field/form-field.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/guides/material-2.md b/guides/material-2.md index 14ed66610b06..8deef59e87ee 100644 --- a/guides/material-2.md +++ b/guides/material-2.md @@ -1073,7 +1073,7 @@ removed. The simplest way to accomplish this is by checking the theme version and emitting different styles for M2 vs M3. You can check the theme version using the `get-theme-version` function from `@angular/material`. The function will return `0` for an M2 theme or `1` for an M3 theme (see -[theme your own components using a Material 3 theme](https://material.angular.dev/guide/theming#theme-your-own-components-using-a-material-3-theme) +[theme your own components using a Material 3 theme](https://v18.material.angular.dev/guide/theming#theme-your-own-components-using-a-material-3-theme) for how to read values from an M3 theme). ```scss diff --git a/src/material/form-field/form-field.md b/src/material/form-field/form-field.md index 731264c69202..36d58bca8a3d 100644 --- a/src/material/form-field/form-field.md +++ b/src/material/form-field/form-field.md @@ -121,9 +121,9 @@ information on this see the guide on The color of the form-field can be changed by specifying a `$color-variant` when applying the `mat.form-field-theme` or `mat.form-field-color` mixins (see the -[theming guide](/guide/theming#using-component-color-variants) to learn more.) By default, the -form-field uses the theme's primary palette. This can be changed to `'secondary'`, `'tertiary'`, or -`'error'`. +[v18 theming guide](https://v18.material.angular.dev/guide/theming#using-component-color-variants) +to learn more.) By default, the form-field uses the theme's primary palette. This can be changed to +`'secondary'`, `'tertiary'`, or `'error'`. ### Accessibility