-
Notifications
You must be signed in to change notification settings - Fork 27
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
add better text truncation method #8034
add better text truncation method #8034
Conversation
@jrjohnson Good catch. I'm also realizing |
Places where
|
@jrjohnson I believe I fixed the background color issue, but had to be specific instead of general (thankfully, there are only three places to be specific about right now). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs team discussion (and a couple tweaks).
packages/ilios-common/addon/components/objective-sort-manager.hbs
Outdated
Show resolved
Hide resolved
packages/ilios-common/app/styles/ilios-common/components/fade-text.scss
Outdated
Show resolved
Hide resolved
packages/ilios-common/app/styles/ilios-common/components/fade-text.scss
Outdated
Show resolved
Hide resolved
8ee6fe7
to
a3b0140
Compare
Note to self: attempt to create a mixin that can be used to facilitate the gradient from transparent->text background color. |
a3b0140
to
3f09ad8
Compare
@jrjohnson I moved the component-specific styles in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really love how this looks, I found a couple of new behavior / visual issues in testing:
- Clicking on the unexpanded text does nothing. In the current implementation if you click on a collapsed objective the editor opens. I think that is good, but I'd also accept that clicking anywhere in the text expanded the entire block.
- If the text is indented (like in a list) the control floats up into the middle instead of being at the bottom, this isn't an issue with our current control because the indentation never happens due to the HTML stripping:
Not sure if we should go ahead with these or try and find fixes. Let's discuss.
@jrjohnson All good points. Will look into these. |
3f09ad8
to
549155f
Compare
@jrjohnson I fixed all the stuff mentioned in point 1, but not sure how to approach point 2 without re-architecting the whole truncation system. |
@jrjohnson This has one failing testapp test, because it's testing for truncation length, and not the new visual fading thing. Not sure how to rewrite test, hmmm. |
549155f
to
850a9a2
Compare
850a9a2
to
241effd
Compare
Having some issues with getting a JS triggered click to target the correct item (thus, test won't pass). Manually clicking with a mouse/touch works fine, though. Frustrating -_- |
241effd
to
f0368f6
Compare
…ntrol classed div around collapse button
…xpand/collapse test
f0b3e9d
to
ee055e5
Compare
… loads properly before checking class
@dartajax I finally got every test to pass; just have Percy to finish. Can you take a look, and bring this one home? Thanks a bunch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
References ilios/ilios#3482
My first crack at changing our current
<TruncateText>
system to a<FadeText>
system: instead of removing HTML and squishing text together, leave it all as-is but put a fade-to-bg effect on it. Only working on Session Objectives->Description for now, but could be expanded.Old, Tired, Non-Ideal:
New, Wired, Superior(?):
The vertical spacing it takes up can be adjusted. Here's another one with more faded away: