Skip to content

Commit

Permalink
chore: fix tsdoc for link web component template (microsoft#31690)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdholt committed Jun 12, 2024
1 parent ef5d226 commit f5a3153
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "fix tsdoc for link template",
"packageName": "@fluentui/web-components",
"email": "13071055+chrisdholt@users.noreply.github.com",
"dependentChangeType": "none"
}
2 changes: 1 addition & 1 deletion packages/web-components/docs/api-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2191,7 +2191,7 @@ export const lineHeightHero900 = "var(--lineHeightHero900)";
// @public
export class Link extends BaseAnchor {
appearance?: LinkAppearance | undefined;
inline?: boolean;
inline: boolean;
}

// @public
Expand Down
2 changes: 1 addition & 1 deletion packages/web-components/src/link/link.options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const LinkAppearance = {
} as const;

/**
* An Link can be secondary, primary, outline, subtle, transparent
* An Link can be subtle or the default appearance
* @public
*/
export type LinkAppearance = ValuesOf<typeof LinkAppearance>;
Expand Down
4 changes: 2 additions & 2 deletions packages/web-components/src/link/link.template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ElementViewTemplate, html, ViewTemplate } from '@microsoft/fast-element
import type { Link } from './link.js';

/**
* The template for the Button component.
* The template for the Link component.
* @public
*/
export function anchorTemplate<T extends Link>(): ViewTemplate<T> {
Expand All @@ -18,7 +18,7 @@ export function anchorTemplate<T extends Link>(): ViewTemplate<T> {
}

/**
* The template for the Button component.
* The template for the Link component.
* @public
*/
export const template: ElementViewTemplate<Link> = anchorTemplate();
2 changes: 1 addition & 1 deletion packages/web-components/src/link/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ export class Link extends BaseAnchor {
* HTML Attribute: `inline`
*/
@attr({ mode: 'boolean' })
public inline?: boolean = false;
public inline: boolean = false;
}

0 comments on commit f5a3153

Please sign in to comment.