-
Notifications
You must be signed in to change notification settings - Fork 407
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
[dev-v5] Initial work for Option and Select implementation #3469
base: dev-v5
Are you sure you want to change the base?
Conversation
vnbaaij
commented
Mar 4, 2025
- Update WC v3 version
- Initial work for FluentOption
- Initial work for FluentSelect
- Add Slot to FluentAvatar
- Fix and update tests
- Initial work for FluentOption - Initial work for FluentSelect - Add Slot to FluentAvatar - Fix and update tests
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 98.9%
|
/// Gets or sets the content to display in the description slot. | ||
/// </summary> | ||
[Parameter] | ||
public string? Description { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the difference between ChildContent and Description ? Maybe we can add this difference in the doc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://web-components.fluentui.dev/?path=/docs/components-dropdown-option--docs#start-content for the difference. Description is shown as an extra line under the ChildContent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably better to have a
RenderFragment
property? And a name like SubChildContent
or DescriptionTemplate
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sense 😀. And the dev can use the ChildContent
to format the content.
Can you add an explanation in this property doc: to explain that is a message below the ChildContent
content.
<fluent-text as="span" size="200" slot="message"></fluent-text> | ||
</fluent-field> | ||
|
||
<fluent-field id="xxx" label-position="after" size="medium"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the FluentCheckbox tests changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Field/label did not take the Size into account yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this. If this test was correct in the dev-v5
branch, why is it wrong now without a change in FluentField
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not make a change in FluentField
. I added slot
(==AdditionalAttribute) in FluentCheckBox.razor
. So the rendered html is different.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually made the change outside of this PR already but didn't update the verified files...doing that in dev-v5
now
<FluentOption Value="One">One</FluentOption> | ||
<FluentOption Value="Two">Two</FluentOption> | ||
<FluentOption Value="Three">Three</FluentOption> | ||
<FluentOption Value="@("One")">One</FluentOption> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you update "One"
to "@("One")"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FluentOption is now generic. When using string as the type, you need to specify the values like this. But made some more changes so will check if it is still necessary