medialize/ally.js

View on GitHub
src/supports/focus-scroll-container-without-overflow.js

Summary

Maintainability
A
30 mins
Test Coverage

// https://github.com/medialize/ally.js/issues/21
export default {
  element: 'div',
  mutate: function(element) {
    element.setAttribute('style', 'width: 100px; height: 50px;');
    element.innerHTML = '<div style="width: 500px; height: 40px;">scrollable content</div>';
  },
};