Skip to content

Breakpoint middleware#387

Merged
agubler merged 2 commits into
dojo:masterfrom
agubler:breakpoint-middleware
Jul 4, 2019
Merged

Breakpoint middleware#387
agubler merged 2 commits into
dojo:masterfrom
agubler:breakpoint-middleware

Conversation

@agubler
Copy link
Copy Markdown
Member

@agubler agubler commented Jun 7, 2019

Type: feature

The following has been addressed in the PR:

Description:

Breakpoint meta that returns the matching breakpoint based on the width of a node. Provides a factory that can be used to create breakpoint meta with a custom set of breakpoints that can be used throughout an application. By default the breakpoint meta uses:

{
  SM: 0,
  MD: 576,
  LG: 768,
  XL: 960 
}

The breakpoints can also be overridden when using the .get

breakpoint.get('root', { 'custom-small': 100, 'custom-large': 700 }

@agubler agubler force-pushed the breakpoint-middleware branch from 442c6c7 to 16319ac Compare July 2, 2019 21:39
@agubler agubler changed the title [WIP] Breakpoint middleware Breakpoint middleware Jul 2, 2019
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