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

Input Labels Spec Documents #3618

Merged
merged 6 commits into from
Dec 5, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Update test app results for new sample
  • Loading branch information
Rebecca Muraira committed Dec 4, 2019
commit 239a856aa43646eb89bff1f7fb819e598dd19f51
3 changes: 3 additions & 0 deletions samples/v1.3/Elements/Input.Label.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
},
{
"type": "Input.Text",
"id": "labelAsString",
"placeholder": "First Last",
"label": "Name:"
},
{
"type": "Input.Date",
"id": "labelAsTextBlock",
"label": {
"type": "TextBlock",
"text": "Start Date:",
Expand All @@ -23,6 +25,7 @@
{
"type": "Input.Text",
"placeholder": "Placeholder text",
"id": "labelAsRichTextBlock",
"label": {
"type": "RichTextBlock",
"inlines": [
Expand Down
2 changes: 1 addition & 1 deletion source/uwp/AdaptiveCardTestApp/AdaptiveCardTestApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -253,4 +253,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"HostConfigHash":null,"CardHash":"52f6c84","Error":null}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"HostConfigHash":null,"CardHash":"52f6c84","Error":null}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "Please fill out the following form:",
"size": "Medium"
},
{
"type": "Input.Text",
"id": "labelAsString",
"placeholder": "First Last",
"label": "Name:"
},
{
"type": "Input.Date",
"id": "labelAsTextBlock",
"label": {
"type": "TextBlock",
"text": "Start Date:",
"weight": "Bolder"
}
},
{
"type": "Input.Text",
"placeholder": "Placeholder text",
"id": "labelAsRichTextBlock",
"label": {
"type": "RichTextBlock",
"inlines": [
{
"type": "TextRun",
"text": "What is your "
},
{
"type": "TextRun",
"text": "favorite",
"italic": true
},
{
"type": "TextRun",
"text": " color?"
}
]
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,288 @@
{
"spacing": {
"small": 5,
"default": 10,
"medium": 15,
"large": 20,
"extraLarge": 25,
"padding": 15
},
"separator": {
"lineThickness": 2,
"lineColor": "#EEEEEE"
},
"supportsInteractivity": true,
"fontTypes": {
"default": {
"fontFamily": "Times New Roman",
"fontSizes": {
"small": 12,
"default": 14,
"medium": 17,
"large": 21,
"extraLarge": 26
},
"fontWeights": {
"lighter": 100,
"default": 400,
"bolder": 1000
}
},
"monospace": {
"fontFamily": "Consolas",
"fontSizes": {
"small": 12,
"default": 14,
"medium": 17,
"large": 21,
"extraLarge": 26
},
"fontWeights": {
"lighter": 100,
"default": 400,
"bolder": 1000
}
}
},
"imageSizes": {
"small": 20,
"medium": 40,
"large": 80
},
"actions": {
"maxActions": 3,
"spacing": "small",
"buttonSpacing": 20,
"showCard": {
"actionMode": "popup",
"inlineTopMargin": 10
},
"actionsOrientation": "vertical",
"actionAlignment": "left"
},
"adaptiveCard": {
"allowCustomStyle": false
},
"imageSet": {
"imageSize": "medium",
"maxImageHeight": 100
},
"factSet": {
"title": {
"color": "attention",
"size": "small",
"isSubtle": false,
"weight": "bolder",
"wrap": true,
"maxWidth": 100
},
"value": {
"color": "warning",
"size": "small",
"isSubtle": false,
"weight": "lighter",
"wrap": true
},
"spacing": 5
},
"containerStyles": {
"default": {
"foregroundColors": {
"default": {
"default": "#ffffffff",
"subtle": "#bfffffff"
},
"dark": {
"default": "#ff201f1f",
"subtle": "#ff2d2c2c"
},
"light": {
"default": "#ffffffff",
"subtle": "#bfffffff"
},
"accent": {
"default": "#ffa6a7dc",
"subtle": "#ff8b8cc7"
},
"good": {
"default": "#ff92c353",
"subtle": "#e592c353"
},
"warning": {
"default": "#fff8d22a",
"subtle": "#e5f8d22a"
},
"attention": {
"default": "#ffd74654",
"subtle": "#e5d74654"
}
},
"backgroundColor": "#ff2d2c2c"
},
"emphasis": {
"foregroundColors": {
"default": {
"default": "#ffffffff",
"subtle": "#bfffffff"
},
"dark": {
"default": "#ff201f1f",
"subtle": "#ff2d2c2c"
},
"light": {
"default": "#ffffffff",
"subtle": "#bfffffff"
},
"accent": {
"default": "#ffa6a7dc",
"subtle": "#ff8b8cc7"
},
"good": {
"default": "#ff92c353",
"subtle": "#e592c353"
},
"warning": {
"default": "#fff8d22a",
"subtle": "#e5f8d22a"
},
"attention": {
"default": "#ffd74654",
"subtle": "#e5d74654"
}
},
"backgroundColor": "#ff292828"
},
"accent": {
"backgroundColor": "#C7DEF9",
"foregroundColors": {
"default": {
"default": "#ff201f1f",
"subtle": "#ff2d2c2c"
},
"dark": {
"default": "#ff201f1f",
"subtle": "#ff2d2c2c"
},
"light": {
"default": "#ffffffff",
"subtle": "#bfffffff"
},
"accent": {
"default": "#ffa6a7dc",
"subtle": "#ff8b8cc7"
},
"good": {
"default": "#ff92c353",
"subtle": "#e592c353"
},
"warning": {
"default": "#fff8d22a",
"subtle": "#e5f8d22a"
},
"attention": {
"default": "#ffd74654",
"subtle": "#e5d74654"
}
}
},
"good": {
"backgroundColor": "#CCFFCC",
"foregroundColors": {
"default": {
"default": "#ff201f1f",
"subtle": "#ff2d2c2c"
},
"dark": {
"default": "#ff201f1f",
"subtle": "#ff2d2c2c"
},
"light": {
"default": "#ffffffff",
"subtle": "#bfffffff"
},
"accent": {
"default": "#ffa6a7dc",
"subtle": "#ff8b8cc7"
},
"good": {
"default": "#ff92c353",
"subtle": "#e592c353"
},
"warning": {
"default": "#fff8d22a",
"subtle": "#e5f8d22a"
},
"attention": {
"default": "#ffd74654",
"subtle": "#e5d74654"
}
}
},
"attention": {
"backgroundColor": "#FFC5B2",
"foregroundColors": {
"default": {
"default": "#ff201f1f",
"subtle": "#ff2d2c2c"
},
"dark": {
"default": "#ff201f1f",
"subtle": "#ff2d2c2c"
},
"light": {
"default": "#ffffffff",
"subtle": "#bfffffff"
},
"accent": {
"default": "#ffa6a7dc",
"subtle": "#ff8b8cc7"
},
"good": {
"default": "#ff92c353",
"subtle": "#e592c353"
},
"warning": {
"default": "#fff8d22a",
"subtle": "#e5f8d22a"
},
"attention": {
"default": "#ffd74654",
"subtle": "#e5d74654"
}
}
},
"warning": {
"backgroundColor": "#FFE2B2",
"foregroundColors": {
"default": {
"default": "#ff201f1f",
"subtle": "#ff2d2c2c"
},
"dark": {
"default": "#ff201f1f",
"subtle": "#ff2d2c2c"
},
"light": {
"default": "#ffffffff",
"subtle": "#bfffffff"
},
"accent": {
"default": "#ffa6a7dc",
"subtle": "#ff8b8cc7"
},
"good": {
"default": "#ff92c353",
"subtle": "#e592c353"
},
"warning": {
"default": "#fff8d22a",
"subtle": "#e5f8d22a"
},
"attention": {
"default": "#ffd74654",
"subtle": "#e5d74654"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"HostConfigHash":"569178d","CardHash":"52f6c84","Error":null}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"actions":[],"body":[{"size":"Medium","text":"Please fill out the following form:","type":"TextBlock"},{"id":"labelAsString","label":"Name:","placeholder":"First Last","type":"Input.Text"},{"id":"labelAsTextBlock","label":{"text":"Start Date:","type":"TextBlock","weight":"Bolder"},"type":"Input.Date"},{"id":"labelAsRichTextBlock","label":{"inlines":[{"text":"What is your ","type":"TextRun"},{"italic":true,"text":"favorite","type":"TextRun"},{"text":" color?","type":"TextRun"}],"type":"RichTextBlock"},"placeholder":"Placeholder text","type":"Input.Text"}],"type":"AdaptiveCard","version":"1.0"}