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

DS-868: Add description_clamp prop to Listing Teaser #2580

Merged
merged 2 commits into from
Dec 2, 2022

Conversation

cjwhitedev
Copy link
Collaborator

Jira

https://pegadigitalit.atlassian.net/browse/DS-868

Summary

Add a new prop for Listing Teaser to toggle the line clamp on the description.

Details

Add a new prop for Listing Teaser to toggle the line clamp on the description.

How to test

Check out the new demo page.

@github-actions github-actions bot added the type: feature List this PR in the 'Features' section of the release notes. label Dec 1, 2022
Copy link
Collaborator

@danielamorse danielamorse left a comment

Choose a reason for hiding this comment

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

Looks good 👍 Approving with one comment...

At first, I thought we should call it "description_truncation" because most people don't know the term "clamp". On second thought, I like "clamp" because it's more accurate. It clamps to a number of lines - it doesn't truncate a number of words. It's probably good to familiarize users with this advanced feature by name.

So, I'm good with it as is, open to alternatives if you can think of anything better.

@colbytcook colbytcook merged commit 7e6025b into master Dec 2, 2022
@colbytcook colbytcook deleted the feature/ds-868-listing-teaser-line-clamp-prop branch December 2, 2022 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature List this PR in the 'Features' section of the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants