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

chore(readme): fix typo and update codesandbox examples #158

Merged
merged 2 commits into from
Jul 5, 2018

Conversation

frederickfogerty
Copy link
Contributor

@frederickfogerty frederickfogerty commented Jul 4, 2018

Description

This PR fixes a typo in README and fixes a problem with the CodeSandbox examples. GitHub does not allow rendering iframe elements in the README, so the iframes were converted to links.

Fixing typos

@frederickfogerty frederickfogerty requested a review from jayeb July 4, 2018 21:54
@frederickfogerty frederickfogerty changed the title chore(readme): fix typo in readme chore(readme): fix typo and update codesandbox examples Jul 4, 2018
@frederickfogerty frederickfogerty merged commit 560385c into master Jul 5, 2018
@frederickfogerty frederickfogerty deleted the fred/readme-typo branch July 5, 2018 20:36
frederickfogerty added a commit that referenced this pull request Jul 30, 2018
* chore(readme): fix typo and update codesandbox examples (#158)

* chore(readme): fix typo in readme

* chore(readme): edit codesandbox iframes to be links instead

* chore(jest): upgrade jest to support new expect functions

* test: use srcset and sizes

- generateSrcSet -> disableSrcSet
- remove aggressiveLoad
- remove precision
- add sizes top-level prop

* chore: update build:watch to build es instead of commonjs

* feat: add constants file and targetWidths from imgix.js

* test: mock window.screen for unit tests

* feat: use srcset and sizes

- generateSrcSet -> disableSrcSet
- remove
- remove precision
- add sizes top-level prop
- remove empty img
- remove defaultWidth and defaultHeight
- remove fluid prop
- remove auto-sizing behaviour in favour of srcsets
- add check to ensure sizes is passed when in image mode and no width and heights have been passed

* test: refactor alt test

* test: refactor ixlib tests to use expectSrcTo

* chore: stop using ...other in props

* chore: rename support.js -> constructUrl.js

* feat: add fallback srcset when using sizes

* feat: update targetWidths with up to date reses, and remove max restriction

* chore: remove fixed TODO

* docs: update README for new srcSet/sizes

* test: add srcSet test for <source>

* feat: use 2x and 3x srcSets for pictures

* docs: update markdown link

* docs: add sizes doc

* chore: cleanup unused code

* chore: update targetWidth

* feat: remove type=bg and add reference to issue

* chore: remove availWidth and availHeight constants as they're not used

* chore: update fit logic

* test: remove type=bg tests

* docs: remove reference to unimplemented aspect ratio behaviour

* docs: add upgrade guide

* chore: refactor some code to be more readable
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.

2 participants