Skip to content

fix: adjust overflow clip margin to line height#7233

Open
GZolla wants to merge 2 commits into
mainfrom
gzolla/update-clip-margin
Open

fix: adjust overflow clip margin to line height#7233
GZolla wants to merge 2 commits into
mainfrom
gzolla/update-clip-margin

Conversation

@GZolla

@GZolla GZolla commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

PHNX-4815

From the commit history it seems that the clip margin was added to support Thai, the problem is that it's set to a fixed value.

The set value starts having issues as with smaller line-heights(relative to it's font-size) it shows part of the next line this sets a css variable so that margin adapts to the line-height.

Not 100% on this but from testing, it seems that (line-height - font-size) / 2 is the ideal value

@GZolla
GZolla requested a review from a team as a code owner July 17, 2026 20:39
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-7233/

Note

The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant