[BD-46] feat: development Truncate component - #1472
Conversation
|
Thanks for the pull request, @PKulkoRaccoonGang! When this pull request is ready, tag your edX technical lead. |
✅ Deploy Preview for paragon-openedx ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
Codecov Report
@@ Coverage Diff @@
## master #1472 +/- ##
==========================================
+ Coverage 91.30% 91.57% +0.27%
==========================================
Files 205 208 +3
Lines 3438 3537 +99
Branches 799 821 +22
==========================================
+ Hits 3139 3239 +100
+ Misses 285 283 -2
- Partials 14 15 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
8487b5a to
1552b60
Compare
…dDecrementCoefficient functions
a0b2f5a to
4d9fb56
Compare
6875acf to
189c2b7
Compare
189c2b7 to
6ebe95d
Compare
e7b58dd to
57d8a80
Compare
adamstankiewicz
left a comment
There was a problem hiding this comment.
Very cool! Been toying around with different examples in the docs site and it seems to be working as intended. Left a few feedback comments.
|
I've noticed the occasional odd behavior with Likewise, we discussed another prop ( |
1e11e3f to
a622750
Compare
a622750 to
ed2d8c7
Compare
| ### Basic Usage | ||
|
|
||
| ```jsx live | ||
| <Truncate lines={2}> |
There was a problem hiding this comment.
This behavior is caused by the width of the container, which is different for each theme. When using truncation by the consumer, there will be no such problems.
| ### With the custom ellipsis | ||
|
|
||
| ```jsx live | ||
| () => { |
There was a problem hiding this comment.
Let's keep this example solely about the custom ellipsis, and add a separate example for using onTruncate. For now, we can just include an example that includes a console.log() inside of onTruncate.
| } | ||
| ``` | ||
|
|
||
| ### Usage in component properties |
There was a problem hiding this comment.
nit: maybe rename this to Example usage in Card?
|
@PKulkoRaccoonGang 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
# [20.10.0](v20.9.3...v20.10.0) (2022-08-19) ### Features * [BD-46] add Truncate component ([#1472](#1472)) ([da3a247](da3a247))
|
🎉 This PR is included in version 20.10.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |


Description
The base requirements for a standalone component would be as follows:
Deploy Preview
Truncate component
Merge Checklist
exampleapp?wittjeffandadamstankiewiczas reviewers on this PR.Post-merge Checklist