diff --git a/src/button/icon-button.stories.ts b/src/button/icon-button.stories.ts index a89d1d7088..e42a273f6f 100644 --- a/src/button/icon-button.stories.ts +++ b/src/button/icon-button.stories.ts @@ -41,7 +41,7 @@ export default { "danger--ghost" ], control: { type: "select" }, - name: "cdsButton" + name: "kind" }, size: { options: ["sm", "md", "lg", "xl", "2xl"], diff --git a/src/tooltip/definition-tooptip.component.ts b/src/tooltip/definition-tooptip.component.ts index db49019d59..04286d063e 100644 --- a/src/tooltip/definition-tooptip.component.ts +++ b/src/tooltip/definition-tooptip.component.ts @@ -41,7 +41,7 @@ import { PopoverContainer } from "carbon-components-angular/popover"; role="tooltip"> {{description}} - + @@ -57,6 +57,10 @@ export class TooltipDefinition extends PopoverContainer { * The string or template content to be exposed by the tooltip. */ @Input() description: string | TemplateRef; + /** + * Optional data for templates passed as implicit context + */ + @Input() templateContext: any; constructor( protected elementRef: ElementRef, diff --git a/src/tooltip/tooltip.component.ts b/src/tooltip/tooltip.component.ts index d47336dc80..47cc1938e2 100644 --- a/src/tooltip/tooltip.component.ts +++ b/src/tooltip/tooltip.component.ts @@ -39,7 +39,7 @@ import { PopoverContainer } from "carbon-components-angular/popover"; {{description}} - + @@ -69,6 +69,10 @@ export class Tooltip extends PopoverContainer implements AfterContentChecked { * The string or template content to be exposed by the tooltip. */ @Input() description: string | TemplateRef; + /** + * Optional data for templates passed as implicit context + */ + @Input() templateContext: any @ViewChild("contentWrapper") wrapper: ElementRef;