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

Version 3.0 ToDos #222

Open
17 of 26 tasks
jedfoster opened this issue Sep 24, 2018 · 4 comments
Open
17 of 26 tasks

Version 3.0 ToDos #222

jedfoster opened this issue Sep 24, 2018 · 4 comments
Assignees

Comments

@jedfoster
Copy link
Owner

jedfoster commented Sep 24, 2018

https://github.com/jedfoster/Readmore.js/tree/version-3.0

  • Tests?
  • Examples
    • Vanilla
    • jQuery (latest)
    • React
    • Riot
    • Vue.js
    • Angular
    • Next.js
  • Validate package structure against...
    • Yarn
    • Rollup
    • Babel
    • Webpack
    • Browser (<script src="/node_modules/readmore-js/dist/readmore.js"></script>)
  • Investigate need for CSS prefixes on supported browsers (do we need -moz, et al?)
  • Document new/changed APIs
  • Evaluate insertBefore #132 for adoption/inclusion. (Feature for controlling where toggle link is inserted—before/after block)
  • Evaluate Stop expanding content if beforeToggle returns false #140 for adoption/inclusion. (Stop expanding content if beforeToggle returns false)
  • Evaluate Allow moreLink and lessLink options to use callbacks #207 for adoption/inclusion. (Allow moreLink and lessLink options to use callbacks)
  • Fill in destroy() method
  • Refactor toggle() and constructor() to work with querySelectorAll
  • Update README on master branch
  • Evaluate Fixes #223 & skip missing selectors #224 for adoption/inclusion
  • Evaluate Update function for generation a new unique id #225 for adoption/inclusion
  • Refactor toggle() to expose as a static method Not sure of the utility of this; toggle depends on options which is an instance property.
@jedfoster jedfoster self-assigned this Sep 24, 2018
@jedfoster
Copy link
Owner Author

Re: tests,

Puppeteer looks promising. Decent tutorial on using it with Mocha: https://medium.com/@ankit_m/ui-testing-with-puppeteer-and-mocha-part-1-getting-started-b141b2f9e21

@jedfoster
Copy link
Owner Author

transition is the only CSS property that would conceivably need to be prefixed, but http://shouldiprefix.com/#transitions says "No prefixes!" So, 🎉

@olivercastle
Copy link

Great work on this @jedfoster.
Been trying to integrate with a web component, but it doesn't seem to be fully working when using within shadowDom.

The general functionality works, but the use of document.querySelector causes a few problems...

The moreLink, for example, doesn't get replaced with lessLink on toggle.

Have you had any thoughts on supporting this being used within shadowDom?

@jedfoster
Copy link
Owner Author

@olivercastle No, I hadn't even thought of using this in a web component, but that's a fantastic idea. Unfortunately, I have zero experience with that technology, and don't have any idea how to start.

Pull requests are always welcome.

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

No branches or pull requests

2 participants