Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

fix(layouts): register Layout directives for xs, gt-xs, xl #6037

Closed
wants to merge 1 commit into from

Conversation

ThomasBurleson
Copy link
Contributor

  • Refactor Layout API directive registration to iteration all known breakpoints.
  • Update layout.spec.js tests to test all breakpoints

Fixes #5983.

@ThomasBurleson ThomasBurleson added needs: review This PR is waiting on review from the team ui: flexbox priority: critical labels Dec 2, 2015
@ThomasBurleson ThomasBurleson added this to the 1.0-rc6 milestone Dec 2, 2015
* Refactor Layout API directive registration to iteration all known breakpoints.
* Update `layout.spec.js` tests to test all breakpoints

Fixes #5983.
@ThomasBurleson ThomasBurleson force-pushed the wip/fix_layout_breakpoints branch from 10ab79b to c6449e2 Compare December 2, 2015 17:42
var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;

// NOTE: these are also defined in constants::MEDIA_PRIORITY and constants::MEDIA
var BREAKPOINTS = [ "", "xs", "gt-xs", "sm", "gt-sm", "md", "gt-md", "lg", "gt-lg", "xl" ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that I think about it, how much of a performance impact does adding all of these directives have? This currently registers 90 directives just in this loop (or 109 total).

@EladBezalel EladBezalel deleted the wip/fix_layout_breakpoints branch January 16, 2016 00:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: review This PR is waiting on review from the team ui: flexbox
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants