microsoft / microsoft/BotFramework-WebChat
[White Label - Herocard long title]: After applying text spacing, title is getting truncated.
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1.8k
- Forks
- 1.6k
- Avg merge
- 22h 58m
- Merged PRs (30d)
- 2
Description
Is it an issue related to Adaptive Cards?
No.
What is the PWD impact?
When text spacing is applied, the title becomes truncated, causing loss of information and making it difficult for users—especially those who adjust spacing for readability—to fully understand the content.
What browsers and screen readers do this issue affect?
Windows: Edge with Windows Narrator
Are there any code-based customization done to Web Chat?
No, I am using Web Chat without any customizations except "styleOptions".
What version of Web Chat are you using?
Latest production
Which area does this issue affect?
Transcript navigation
What is the public URL for the website?
No response
How to reproduce the issue?
Prerequisite:
- Install stylus in browser and pin it in your extensions (note, same link can be used to install in edge too): https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne.
- Once added, click on it (Alt +arrow keys) and tab till manage and press enter.
- In the new window that opens, under Actions, press Enter on Write new styles. Code area will open.
- Paste the following code in that area:
- {
line-height: 1.5 !important;
letter-spacing: 0.12em !important;
word-spacing: 0.16em !important;
}
p {
margin-bottom: 2em !important;
}
- Give it a name. Example: text spacing. Uncheck the Enabled checkbox.
- Hit save.
- To use it, you can activate the stylus plugin on the page you want to test and check the ‘Text spacing’ (if that is the name you used while creating) checkbox.
Repro Steps:
- Open URL: https://compulim.github.io/webchat-loader/ and sign in using valid credentials.
- Navigate to web chat page and select 4.18.1-main.20240927.ea7a875 (30/9/2024) version and then select mockBot link under present label and then select open web chat in new window link at bottom.3.Navigate to white label experience chat page and type Herocard long title word in type your message text box.
4.Apply Text Spacing.
5.Observe that after applying text spacing herocard title is getting truncated.
What do you expect?
After applying text spacing, the title should remain fully visible without truncation, ensuring all content is readable and accessible.
What actually happened?
After applying text spacing, title "This is a HeroCard with a really, really long title that is int" is getting truncated.
Do you have any screenshots or recordings to repro the issue?
Did you find any DOM elements that might have caused the issue?
No response
MAS reference
No response
WCAG reference
https://www.w3.org/WAI/WCAG21/Understanding/text-spacing
WAI-ARIA reference
No response
Adaptive Card JSON
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue at the webchat-loader URL using the listed 4.18.1-main version, mockBot, white label experience, and the provided Stylus text-spacing rules. Inspect the HeroCard title rendering and its layout constraints; done means the full long title remains visible after text spacing is applied.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, html
- Domain
- accessibility, frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100