Repository navigation
Show deprecated API docs without strikethrough, muting or reordering - #5016
Merged
Merged
Conversation
A deprecated operation now looks like any other row. The red `Deprecated` badge is the only signal, and deprecated operations sort by route and method like the rest. This removes the strike, the 0.7 opacity and the desaturated method chip from the sidebar, both search UIs, landing and group rows, and property names. A group whose operations are all deprecated is no longer marked deprecated. Search relevance still lifts current operations. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/5016/ |
… @infra-vault-gh-plugin-prod) The design-system sidebar rendered by `_NavTreeItems` still struck, dimmed and desaturated deprecated rows through `nav-tree__link--deprecated`. The class and its `nav-tree.css` rules are gone. The hidden "Deprecated" text stays. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The sidebar no longer strikes deprecated items, so the summary on `IDeprecatableNavigationItem` described behaviour that is gone. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.
Deprecated API operations and groups now look like any other row in the sidebar, search, landing pages and group pages. The red
Deprecatedbadge is the only signal, and deprecated operations sort by route and method like the rest.Affects: API reference, Site UI, Search
Prompt summary: Remove the muted and strikethrough styling of deprecated API docs everywhere: search, navigation, landing pages and group pages. Also remove the logic that deprecates a group when all its operations are deprecated, and the logic that pushes deprecated operations down in lists and the sidebar.
Why
A struck, dimmed title hides content readers still need, such as an old operation that is the only one for a task. The treatment was also spread over six stylesheets and components, and a group whose operations were all deprecated changed its own look and page title.
What
Muted styling removed
The strike, the
0.7opacity and the desaturated method chip are gone from sidebar rows, both search UIs (the React search and the design-system search dialog), landing and group rows, and deprecated property names. The markup that only fed them is gone too: the<s>tags, thenav-link--deprecatedandapi-group-row--deprecatedclasses, anddata-deprecated.Group deprecation removed
TagNavigationItem.Deprecatedis deleted, so a group whose operations are all deprecated looks like any other group and its page heading shows no badge.Ordering
ApiOperationOrder.InListOrdersorts by route, then method. The sidebar, group pages and product landing page all use it, so deprecated operations stay where their route puts them.What stays
The
Deprecatedbadge on operation titles, operation rows, search cards and property chips stays. So does the visually hidden "Deprecated" text in operation nav rows. Out of scope: search relevance still lifts current operations (ApiLookupWeights.NotDeprecated) andIncludeDeprecatedstill filters; changing them needs a relevance run.Verify
🤖 Generated with Claude Code