Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ public static FrameworkElement EncloseElementInPanel(AdaptiveRenderContext conte
panel.Children.Add(RenderLabel(context, inputElement, elementForAccessibility));
AddSpacing(context, context.Config.Inputs.Label.InputSpacing, panel);
}
else if (inputElement.IsRequired)
{
context.Warnings.Add(new AdaptiveWarning((int)AdaptiveWarning.WarningStatusCode.EmptyLabelInRequiredInput, "Input is required but there's no label for required hint rendering"));
}

panel.Children.Add(enclosingElement);
enclosingElement = panel;
Expand Down
2 changes: 1 addition & 1 deletion source/dotnet/Library/AdaptiveCards/AdaptiveWarning.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace AdaptiveCards
public class AdaptiveWarning
{
// TODO #2749: temporary warning code for fallback card. Remove when common set of error codes created and integrated.
public enum WarningStatusCode { UnsupportedSchemaVersion = 7, InvalidLanguage = 12, MaxActionsExceeded = 13 };
public enum WarningStatusCode { UnsupportedSchemaVersion = 7, InvalidLanguage = 12, MaxActionsExceeded = 13, EmptyLabelInRequiredInput = 14 };

public AdaptiveWarning(int code, string message)
{
Expand Down