question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

{Linked:Bug1389550}[Adaptive Cards> Designer]: 'Please choose ... to eat in breakfast' placeholder text is getting cropped on applying text spacing.

See original GitHub issue

Target Platforms

Other

SDK Version

1.5

Application Name

Adaptive Cards

Problem Description

Test Environment: OS Version: 22H2 (Build 25145.1011) Browser: Edge Dev (106.0.1349.1) URL: https://adaptivecards.io/designer/ Tool: Stylus

Repro Steps:

  1. Open the above URL in edge dev browser.
  2. Attached the provided JSON in Designer tab of Card payload editor and in sample payload editor.
  3. Turn on the stylus tool.
  4. Navigate to the ‘Please choose what you like … to eat in breakfast’ edit field.
  5. Observe the issue.

Actual Result: On applying text spacing, ‘Please choose … to eat in breakfast’ placeholder text is getting cropped.

Expected Result: On applying text spacing, ‘Please choose … to eat in breakfast’ placeholder text should not get cropped.

User Impact: Person with visual disability will get impacted if placeholder text is getting cropped due to which user will not be able to understand the purpose and will have difficulty in tracking the content.

MAS reference link: https://liquid.microsoft.com/Web/Object/Read/MS.Accessibility/Requirements/01.04.12

Screenshots

MAS1 4 12 Placeholder text is getting cropped on applying text spacing

Card JSON

{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.5",
    "body": [
        {
            "type": "TextBlock",
            "text": "${FormInfo.title}",
            "size": "Large",
            "wrap": true,
            "weight": "Bolder"
        },
        {
            "type": "Input.ChoiceSet",
            "id": "EntreeSelectVal",
            "label": "${Order.questions[0].question}",
            "style": "filtered",
            "isRequired": true,
            "errorMessage": "This is a required input",
            "placeholder": "Please choose what you like to eat in breakfast",
            "choices": [
                {
                    "$data": "${Order.questions[0].items}",
                    "title": "${choice}",
                    "value": "${value}"
                }
            ]
        },
        {
            "type": "Input.ChoiceSet",
            "id": "SideVal",
            "label": "${Order.questions[1].question}",
            "style": "filtered",
            "isRequired": true,
            "errorMessage": "This is a required input",
            "placeholder": "Please choose",
            "choices": [
                {
                    "$data": "${Order.questions[1].items}",
                    "title": "${choice}",
                    "value": "${value}"
                }
            ]
        },
        {
            "type": "Input.ChoiceSet",
            "id": "DrinkVal",
            "label": "${Order.questions[2].question}",
            "style": "filtered",
            "isRequired": true,
            "errorMessage": "This is a required input",
            "placeholder": "Please choose",
            "choices": [
                {
                    "$data": "${Order.questions[2].items}",
                    "title": "${choice}",
                    "value": "${value}"
                }
            ]
        }
    ],
    "actions": [
        {
            "type": "Action.Submit",
            "title": "Place Order"
        }
    ]
}

Sample Code Language

No response

Sample Code

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vaishali1397commented, Sep 28, 2022

@anna-dingler Below are the steps to install the stylus and configure it –

  1. Go to - https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne?hl=en.
  2. Click on ‘Add to Chrome’ button.
  3. After adding, you should find Stylus icon on the tool bar, click it to open drop down menu.
  4. Select ‘Manage Styles’ from the menu. On the manage styles screen, click on ‘Create new Style’. The New style screen would open, here give a suitable name for your new style, e.g. ‘text spacing’.
  5. Add following CSS under ‘Code’ field –
  • { line-height: 1.5 !important; letter-spacing: 0.12em !important; word-spacing: 0.16em !important; } p { margin-bottom: 2em !important; }
  1. Click on ‘Save’.
0reactions
vagptcommented, Apr 28, 2023

Closing this issue as per the above comment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Input.Text
Hint of maximum length characters to collect (may be ignored by some clients). 1.0. placeholder, string, No, Description of the input desired. Displayed...
Read more >
Having trouble with AdaptiveCard Designer accepting card ...
This error you will get in Adaptive Card designer itself if you look closely, also there are multiple JSON validator available on web....
Read more >
Designing Adaptive Cards for your Microsoft Teams app
In this module, learn how to design Adaptive Cards for your Teams app and get the Microsoft Teams UI Kit.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found