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

Improvement: remove usage of !important to remove the padding of nodes during search #46

Merged
merged 3 commits into from
Feb 15, 2018

Conversation

Gregcop1
Copy link
Contributor

@Gregcop1 Gregcop1 commented Feb 14, 2018

feat: remove cascading !important in css for hidden nodes (it's repaced by JS conditional style and allow to override this behaviour easily)
feat: add a "keepTreeOnSearch" prop to display results as a tree instead of flattening them (parent that don't match but with children which match are displayed with a specific class (ATM, it reduces opacity too))

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 99.563% when pulling 4d8e7d4 on Gregcop1:fix-remove-important into 55e7036 on dowjones:master.

@coveralls
Copy link

coveralls commented Feb 14, 2018

Coverage Status

Coverage decreased (-0.4%) to 99.587% when pulling 0b63d51 on Gregcop1:fix-remove-important into 55e7036 on dowjones:master.

@Gregcop1 Gregcop1 force-pushed the fix-remove-important branch 2 times, most recently from 0f1aa89 to 43cc857 Compare February 14, 2018 12:38
… search

to avoid cascading !important in css, it's better to not use it at first.
@Gregcop1 Gregcop1 force-pushed the fix-remove-important branch 3 times, most recently from 0c30167 to 1a2d51a Compare February 14, 2018 22:10
@mrchief
Copy link
Collaborator

mrchief commented Feb 15, 2018

@Gregcop1 Thanks for sending this PR. keepTreeOnSearch is a nice addition.

Just running few tests locally. If everything checks out, I'll merge this soon. 👍

@mrchief mrchief merged commit 92376d5 into dowjones:master Feb 15, 2018
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.

3 participants