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

Expandable: Fade out section when 'closed' #4818

Merged
merged 1 commit into from
Oct 2, 2020
Merged

Conversation

infinite-persistence
Copy link
Contributor

Issue

The abrupt cut-off of the expandable section bugs me (looks like a rendering glitch), especially when it cuts off in the middle of a line.

Change

In addition to the existing 'More' button, we fade out the section to provide additional visual cues.

Approach

This solution doesn't require the background color to be known, so it will work regardless where <Expandable> is used, or whatever color-scheme is chosen.

However, it does utilize non-standard css -- for older browsers, it should simply cut-off like the before.

image

Test

  • Firefox (working)
  • Chrome (working)
  • Opera (working)
  • Edge (fails with style and grace)
  • Internet Explorer (couldn't get lbry to load at all)

## Issue
The abrupt cut-off of the expandable section bugs me (looks like a rendering glitch), especially when it cuts off in the middle of a line.

## Change
In addition to the existing 'More' button, we fade out the section to provide additional visual cues.

## Approach
This solution doesn't require the background color to be known, so it will work regardless where <Expandable> is used, or whatever color-scheme is chosen.

However, it does utilize non-standard css -- for older browsers, it should simply cut-off like the before.
@neb-b
Copy link

neb-b commented Oct 2, 2020

@infinite-persistence this is great!

@neb-b neb-b merged commit 108a898 into master Oct 2, 2020
@neb-b neb-b deleted the ip-expandable-fade branch October 2, 2020 15:54
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.

None yet

2 participants