You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MessageBarTitle can only be displayed as a , other components allow me to customise the tag.
Additionally, there is an "as" field on it that only accepts "span", or undefined (which then just defaults to span), this is misleading.
Expected Behavior
MessageBarTitle should allow us to display as different html tags. Other components give us a choice of may different values (h1, h2, h3, p, etc). However, for this component we are limited to span. I would like to use different values to be consistent with the rest of my app.
Reproduction
Repro provided below
Steps to reproduce
Create a component
Try to set the "as" value to anything other than span
Observe a type error
Are you reporting an Accessibility issue?
None
Suggested severity
High - No workaround
Products/sites affected
No response
Are you willing to submit a PR to fix?
no
Validations
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
The provided reproduction is a minimal reproducible example of the bug.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your contributions to Fluent UI!
Component
MessageBar
Package version
^9.55.0
React version
^18.2.0
Environment
Current Behavior
The MessageBarTitle can only be displayed as a , other components allow me to customise the tag.
Additionally, there is an "as" field on it that only accepts "span", or undefined (which then just defaults to span), this is misleading.
Expected Behavior
MessageBarTitle should allow us to display as different html tags. Other components give us a choice of may different values (h1, h2, h3, p, etc). However, for this component we are limited to span. I would like to use different values to be consistent with the rest of my app.
Reproduction
Repro provided below
Steps to reproduce
Are you reporting an Accessibility issue?
None
Suggested severity
High - No workaround
Products/sites affected
No response
Are you willing to submit a PR to fix?
no
Validations
The text was updated successfully, but these errors were encountered: