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

feat(api): add responsive API for img elements #384

Merged
merged 1 commit into from
Sep 7, 2017

Commits on Aug 31, 2017

  1. feat(api): add responsive API for img elements

    * add responsive API to img[src.md], img[src.lt-lg], img[src.gt-xs], etc.
    * skip actions if responsive keys are not defined
      *  without responsive keys (`src.<alias>`) defined, the ImgSrcDirective should **fall-through** and not change any attributes or properties on the `img` DOM element. The `img.src` attribute is dynamically set only when responsive keys are defined.
        * defaults to `src=""` if not explicitly assigned
        * responsive key activation will then assign the activated value to `img.src` attribute.
    
    Closes #366, Fixes #81, Fixes #376.
    ThomasBurleson committed Aug 31, 2017
    Configuration menu
    Copy the full SHA
    7390242 View commit details
    Browse the repository at this point in the history