Skip to content

style - Truncate long notice modal text with ellipsis #2152

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

Merged
merged 3 commits into from
May 17, 2023

Conversation

B-T-D
Copy link
Contributor

@B-T-D B-T-D commented May 15, 2023

Description

When the text of an item in the notice modal is too long for its container, it looks better for it to truncate with an ellipsis rather than wrapping.

How Has This Been Tested?

Manually.

Documentation

CheckList

  • PR title addresses the issue accurately and concisely
  • Updates Documentation and Docstrings
  • Adds tests
  • Adds instrumentation (logs, or UI events)

Signed-off-by: Ben Dye <[email protected]>
@boring-cyborg boring-cyborg bot added the area:frontend From the Frontend folder label May 15, 2023
Signed-off-by: Ben Dye <[email protected]>
@B-T-D B-T-D marked this pull request as ready for review May 15, 2023 18:36
@@ -35,7 +35,14 @@ export const DefinitionList: React.FC<DefinitionListProps> = ({
</dt>
<dd className="definition-list-definition">
{typeof description === 'string' ? (
<SanitizedHTML html={description} />
<SanitizedHTML
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't usually do inline styling, and it seems you added these to a class on css as well so can you use that instead?

@B-T-D B-T-D merged commit 3a76b29 into main May 17, 2023
@B-T-D B-T-D deleted the btd-truncate-long-modal-text branch May 17, 2023 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:frontend From the Frontend folder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants