Skip to content
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

Delete old samples that don't have latest features (causing accessibility issues) #7106

Merged
merged 9 commits into from
Mar 12, 2022
20 changes: 5 additions & 15 deletions samples/v1.0/Scenarios/InputForm.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,35 +31,25 @@
"wrap": true,
"size": "small"
},
{
"type": "TextBlock",
"text": "Your name",
"wrap": true
},
{
"type": "Input.Text",
"id": "myName",
"label": "Your name",
beervoley marked this conversation as resolved.
Show resolved Hide resolved
"placeholder": "Last, First"
},
{
"type": "TextBlock",
"text": "Your email",
"wrap": true
},
{
"type": "Input.Text",
"id": "myEmail",
"label": "Your email",
"regex": "^(.+)@(.+)$",
PankajBhojwani marked this conversation as resolved.
Show resolved Hide resolved
"placeholder": "[email protected]",
"errorMessage": "Please input a valid email address",
"style": "email"
},
{
"type": "TextBlock",
"text": "Phone Number",
"wrap": true
},
{
"type": "Input.Text",
"id": "myTel",
"label": "Phone Number",
"placeholder": "xxx.xxx.xxxx",
"style": "tel"
}
Expand Down
66 changes: 11 additions & 55 deletions samples/v1.0/Scenarios/Inputs.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,87 +12,55 @@
"wrap": true,
"style": "heading"
},
{
"type": "TextBlock",
"text": "Name",
"wrap": true
},
{
"type": "Input.Text",
"style": "text",
"label": "Name",
"id": "SimpleVal"
},
{
"type": "TextBlock",
"text": "Homepage",
"wrap": true
},
{
"type": "Input.Text",
"style": "url",
"label": "Homepage",
"id": "UrlVal"
},
{
"type": "TextBlock",
"text": "Email",
"wrap": true
},
{
"type": "Input.Text",
"style": "email",
"label": "Email",
"id": "EmailVal"
},
{
"type": "TextBlock",
"text": "Phone",
"wrap": true
},
{
"type": "Input.Text",
"style": "tel",
"label": "Phone",
"id": "TelVal"
},
{
"type": "TextBlock",
"text": "Comments",
"wrap": true
},
{
"type": "Input.Text",
"style": "text",
"label": "Comments",
"isMultiline": true,
"id": "MultiLineVal"
},
{
"type": "TextBlock",
"text": "Quantity",
"wrap": true
},
{
"type": "Input.Number",
"min": -5,
"max": 5,
"value": 1,
"label": "Quantity",
"id": "NumVal"
},
{
"type": "TextBlock",
"text": "Due Date",
"wrap": true
},
{
"type": "Input.Date",
"id": "DateVal",
"label": "Due Date",
"value": "2017-09-20"
},
{
"type": "TextBlock",
"text": "Start time",
"wrap": true
},
{
"type": "Input.Time",
"id": "TimeVal",
"label": "Start time",
"value": "16:59"
},
{
Expand All @@ -104,15 +72,11 @@
"wrap": true,
"style": "heading"
},
{
"type": "TextBlock",
"text": "What color do you want? (compact)",
"wrap": true
},
{
"type": "Input.ChoiceSet",
"id": "CompactSelectVal",
"style": "compact",
"label": "What color do you want? (compact)",
"value": "1",
"choices": [
{
Expand All @@ -129,15 +93,11 @@
}
]
},
{
"type": "TextBlock",
"text": "What color do you want? (expanded)",
"wrap": true
},
{
"type": "Input.ChoiceSet",
"id": "SingleSelectVal",
"style": "expanded",
"label": "What color do you want? (expanded)",
"value": "1",
"choices": [
{
Expand All @@ -154,15 +114,11 @@
}
]
},
{
"type": "TextBlock",
"text": "What colors do you want? (multiselect)",
"wrap": true
},
{
"type": "Input.ChoiceSet",
"id": "MultiSelectVal",
"isMultiSelect": true,
"label": "What colors do you want? (multiselect)",
"value": "1,3",
"choices": [
{
Expand Down