Skip to content
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

feat: add link as new web component #31676

Conversation

chrisdholt
Copy link
Member

Previous Behavior

N/A

New Behavior

This PR adds link as a new web component.

Related Issue(s)

  • Fixes #

@chrisdholt chrisdholt requested a review from a team as a code owner June 12, 2024 00:21
@chrisdholt chrisdholt force-pushed the users/chhol/add-link-as-new-web-component branch from 565ec1e to 60ef43c Compare June 12, 2024 00:26
@fabricteam
Copy link
Collaborator

fabricteam commented Jun 12, 2024

📊 Bundle size report

✅ No changes found

@chrisdholt chrisdholt force-pushed the users/chhol/add-link-as-new-web-component branch 3 times, most recently from e02cb23 to 527dfc4 Compare June 12, 2024 04:20
@chrisdholt chrisdholt force-pushed the users/chhol/add-link-as-new-web-component branch from 527dfc4 to aad75f4 Compare June 12, 2024 18:15
@chrisdholt chrisdholt merged commit a958850 into microsoft:master Jun 12, 2024
18 checks passed
@chrisdholt chrisdholt deleted the users/chhol/add-link-as-new-web-component branch June 12, 2024 21:10
} as const;

/**
* An Link can be secondary, primary, outline, subtle, transparent
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this comment accurate? Looks like LinkAppearance above only has subtle as an option.

import type { Link } from './link.js';

/**
* The template for the Button component.
Copy link
Member

@mlijanto mlijanto Jun 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this say "Link" instead of "Button?" Same question for another comment below.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes - I'll push a PR 🗡️

* HTML Attribute: `inline`
*/
@attr({ mode: 'boolean' })
public inline?: boolean = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: if this property has a default value then it doesn't need to be marked as optional.

miroslavstastny pushed a commit to miroslavstastny/fluentui that referenced this pull request Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants