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

Commit 9868972

Browse files
committed
fix(core): fixed responsive prop creation
1 parent 13e73fd commit 9868972

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/core/src/components/base/Ancestor_Base_Stories.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let basicUsage = () => {
1515
maxW={xs: 356->#px}
1616
borderRadius={xs: 1}
1717
p={xs: 3}
18-
bgColor={xs: #hex("000")}
18+
bgColor={xs: #hex("000"), md: #hex("fc0"), lg: #hex("f36")}
1919
tag=#section>
2020
<Base
2121
border={xs: (2->#px, #solid, #hex("f36"))}

packages/core/src/core/Ancestor_Styles.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ module Make = (Config: Ancestor_Config.T) => {
372372
let parsedRules =
373373
rules
374374
->Belt.Map.toArray
375+
->Js.Array2.sortInPlaceWith(sortBySize)
375376
->Js.Array2.map(((breakpoint, rules)) => Css.breakpoint(breakpoint, rules))
376377
->Js.Array2.concat(pseudoSelectorsRules)
377378

0 commit comments

Comments
 (0)