- 
                Notifications
    You must be signed in to change notification settings 
- Fork 6.8k
          build: update dgeni templates to include deprecated tag description
          #29873
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
previously we weren't showing any other information other than `breaking-change` for deprecated fields, this commit adds a component that protrays information regarding deprecation in tooltips rather than `title` attribute closes angular/components#29873
| see comment for a preview. | 
|  | ||
| {%- if constant.isDeprecated -%} | ||
| <div class="docs-api-constant-deprecated-marker" {$ macros.deprecationTitle(constant) $}> | ||
| Deprecated | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we always keep Deprecated for accessibility reasons?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you mean Deprecated text I made it change so that deprecationTitle have two parameter, the first one is the doc itself and second one is the label we would like to show tooltip against. In case of just keeping Deprecated we won't be able to show tooltip against deprecated class name or so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't fully remember how it's showing up right now, but I was thinking we want some static text, next to the "class name" showing "Deprecated". That one you can hover for more details?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted that change and kept the Deprecated text instead of adding it directly from the component on docs site.
changes how deprecated fields are generated for docs content, before this commit deprecated related text was shown via `title` attribute on hover and the `deprecated` tag description was never shown unless user check it manually via code. this commit exports `deprecated` tag description to reflect it directly in docs using `material/tooltip` on doc site
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ty
| This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. | 
changes how deprecated fields are generated for docs content, before this commit deprecated related text was shown via
titleattribute on hover and thedeprecatedtag description was never shown unless user check it manually via code. this commit exportsdeprecatedtag description to reflect it directly in docs usingmaterial/tooltipon doc site