Repository navigation
docs(multiple): fix links to theming guide sections that no longer exist - #34199
Open
andretorresdg wants to merge 1 commit into
Open
andretorresdg wants to merge 1 commit into
andretorresdg wants to merge 1 commit into
Conversation
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.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two docs pages link to sections of the theming guide that were removed when the guide was rewritten
for the
mat.themeAPI in v19:src/material/form-field/form-field.md("Theming") links to/guide/theming#using-component-color-variantsguides/material-2.md("How to migrate...") links tohttps://material.angular.dev/guide/theming#theme-your-own-components-using-a-material-3-themeNeither anchor exists in the current
guides/theming.md, so both links land at the top of thetheming guide, which no longer covers these topics. Both topics, the
$color-variantparameter ofthe component theme mixins and reading values from a theme built with
mat.define-theme, are stilldocumented in the v18 theming guide. The current theming guide already points readers there for
define-themebased themes (guides/theming.md, lines 10-14).This points both links at the matching sections on
v18.material.angular.dev. Docs-only change.How I tested
guides/theming.mdonmainwith the same slug function the docsrenderer uses (
slugify(text, {lower: true, strict: true})). Neither anchor exists.guides/theming.mdon the18.2.xbranch with the slugger the 18.xrenderer used (
marked@2Slugger). Both anchors exist (## Using component color variants,## Theme your own components using a Material 3 theme).tools/markdown-to-htmlrenderer (lockedmarked/slugify versions): no errors, and the rendered
hrefs are the new URLs. I did not run theBazel docs build.