-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Adds MessageBar component to FluentUI #31708
Adds MessageBar component to FluentUI #31708
Conversation
📊 Bundle size report✅ No changes found |
change/@fluentui-web-components-6860ddb3-4e1b-4679-9c94-1dfcf4bf40ca.json
Show resolved
Hide resolved
packages/web-components/src/message-bar/message-bar.template.ts
Outdated
Show resolved
Hide resolved
packages/web-components/src/message-bar/message-bar.template.ts
Outdated
Show resolved
Hide resolved
packages/web-components/src/message-bar/message-bar.template.ts
Outdated
Show resolved
Hide resolved
packages/web-components/src/message-bar/message-bar.template.ts
Outdated
Show resolved
Hide resolved
packages/web-components/src/message-bar/message-bar.template.ts
Outdated
Show resolved
Hide resolved
packages/web-components/src/message-bar/message-bar.template.ts
Outdated
Show resolved
Hide resolved
Can we add a benchmark for this? |
How do I run the benchmarks? I created the message-bar.bench.ts file, but couldn't find documentation on how to get the results. |
@chrisdholt Looks like the benchmarks are now running locally. Is there any other feedback here that I can address? |
This pull request introduces a new
MessageBar
component to the Fluent Web Components. TheMessageBar
component is a notification bar that provides feedback about a user's actions or the state of an application. It can be used to display information, warnings, errors, or success messages.Here are the key changes:
New Component:
MessageBar
component is introduced with various attributes includingshape
,layout
,intent
. It also provides adismissMessageBar
method to emit adismiss
event when the message bar is dismissed.Component Definition:
MessageBar
component is defined and registered with the Fluent Design System.MessageBar
component is exported with various options and styles.Component Options:
MessageBar
component options includingMessageBarLayout
,MessageBarShape
,MessageBarIntent
, andMessageBarPoliteness
are defined.Component Styles:
MessageBar
component are defined. Different styles are applied based on theshape
,layout
,intent
, andpoliteness
attributes of theMessageBar
.Component Template:
MessageBar
component is created. The template includes slots foractions
anddismiss
and uses different icons based on theintent
attribute.Component Integration Test:
MessageBar
component is added. The test checks the default attributes,dismiss
event, and changes to thelayout
,intent
, andshape
attributes.Component Story:
MessageBar
component are added. The stories demonstrate theMessageBar
with different shapes, layouts, intents, and politeness.Closes #26709