Skip to content

[PR feedback] Simplify branching logic and typing#2

Merged
breehall merged 1 commit intobreehall:emotion/breakpointfrom
cee-chen:emotion/breakpoint
Jul 19, 2022
Merged

[PR feedback] Simplify branching logic and typing#2
breehall merged 1 commit intobreehall:emotion/breakpointfrom
cee-chen:emotion/breakpoint

Conversation

@breehall
Copy link
Copy Markdown
Owner

  • Prefer types from theme instead of the breakpoints service (which likely needs to be refactored to use the theme)

  • simplify output to use array logic to output/concatenate a string

  • Remove undefined type

  • improve unit tests:

    • catch console warn conditions
    • don't snapshot invalid/uncommon size combos

- Prefer types from theme instead of the breakpoints service (which likely needs to be refactored to use the theme)

- simplify output to use array logic to output/concatenate a string

- Remove undefined type

- improve unit tests:
  - catch console warn conditions
  - don't snapshot invalid/uncommon size combos
@breehall breehall merged commit 9e77bd6 into breehall:emotion/breakpoint Jul 19, 2022
@cee-chen cee-chen deleted the emotion/breakpoint branch July 20, 2022 17:33
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