Skip to content

Conversation

@vnbaaij
Copy link
Collaborator

@vnbaaij vnbaaij commented Dec 6, 2023

Initial work to add FluentValidationMessage and a Reuired indicator after the label.
This does not yet contain the global flag we discussed. Fix #838 #1055

@vnbaaij vnbaaij requested a review from dvoituron December 6, 2023 16:02
@github-actions
Copy link

github-actions bot commented Dec 6, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-pebble-0dc79cb03-1079.westeurope.3.azurestaticapps.net

Copy link
Collaborator

@dvoituron dvoituron left a comment

Choose a reason for hiding this comment

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

As I put it in the code, I think it's a problem to link FluentInputLabel to the component. For me, it's better to use a composition of components. Especially as the way of representing an Input Label may change from one component to another.

The FluentInputLabel could only use its Required property to display this asterisk or not.

@github-actions
Copy link

github-actions bot commented Dec 7, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-pebble-0dc79cb03-1079.westeurope.3.azurestaticapps.net

…nts accordingly.

Add property to LibraryConfiguration to make required label adjustable
@vnbaaij vnbaaij enabled auto-merge (squash) December 7, 2023 11:36
@github-actions
Copy link

github-actions bot commented Dec 7, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-pebble-0dc79cb03-1079.westeurope.3.azurestaticapps.net

1 similar comment
@github-actions
Copy link

github-actions bot commented Dec 7, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-pebble-0dc79cb03-1079.westeurope.3.azurestaticapps.net


<CascadingValue Value=@_internalListContext Name="ListContext" TValue="InternalListContext<TOption>" IsFixed=true>
<FluentInputLabel ForId="@Id" Label="@Label" AriaLabel="@AriaLabel" ChildContent="@LabelTemplate" />
<FluentInputLabel ForId="@Id" Label="@Label" AriaLabel="@AriaLabel" ChildContent="@LabelTemplate" Required=@Required />
Copy link
Collaborator

Choose a reason for hiding this comment

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

To be coherent with other attributes, could you add double-quotes: Required="@Required"?

@inherits FluentCalendarBase

<FluentInputLabel ForId="@Id" Label="@Label" AriaLabel="@AriaLabel" ChildContent="@LabelTemplate" />
<FluentInputLabel ForId="@Id" Label="@Label" AriaLabel="@AriaLabel" ChildContent="@LabelTemplate" Required=@Required TValue="DateTime?" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

To be coherent with other attributes, could you add double-quotes: Required="@required"?

@inherits FluentCalendarBase

<FluentInputLabel ForId="@Id" Label="@Label" AriaLabel="@AriaLabel" ChildContent="@LabelTemplate" />
<FluentInputLabel ForId="@Id" Label="@Label" AriaLabel="@AriaLabel" ChildContent="@LabelTemplate" Required=@Required TValue="DateTime?" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is this TValue?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Left-over from previos Input paramer thing. Will remove

@dvoituron
Copy link
Collaborator

Some Unit test fail: Cannot provide a value for property 'LibraryConfiguration'.
Probably a configuration to add in the constructor.

@github-actions
Copy link

github-actions bot commented Dec 7, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-pebble-0dc79cb03-1079.westeurope.3.azurestaticapps.net

@github-actions
Copy link

github-actions bot commented Dec 7, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-pebble-0dc79cb03-1079.westeurope.3.azurestaticapps.net

@github-actions
Copy link

github-actions bot commented Dec 7, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-pebble-0dc79cb03-1079.westeurope.3.azurestaticapps.net

@github-actions
Copy link

github-actions bot commented Dec 7, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-pebble-0dc79cb03-1079.westeurope.3.azurestaticapps.net

@vnbaaij vnbaaij merged commit e31a8b2 into dev Dec 7, 2023
@vnbaaij vnbaaij deleted the vnbaaij/validation-message branch December 7, 2023 20:29
vnbaaij added a commit that referenced this pull request Dec 14, 2023
* Inital validation message work

* Initial validation message and required indicator work

* Fix, update and add Slider tests

* Remove Input parameter from FluentInputLabel and change input components accordingly.
Add property to LibraryConfiguration to make required label adjustable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: show validation error below form components like TextField or Checkbox

3 participants