Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #449 from gluestack/fix/context-styles
Browse files Browse the repository at this point in the history
feat: gluestack style anscestor order fixed
  • Loading branch information
surajahmed authored Sep 21, 2023
2 parents 2de002e + 5b186bd commit 86d12ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 4 additions & 4 deletions packages/react/src/styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1765,14 +1765,14 @@ export function verboseStyled<P, Variants, ComCon>(
ancestorStyleContext
) {
const sxDescendantCSSIds = mergeArraysInObjects(
ancestorStyleContext.sx,
applySxDescendantStyleCSSIdsAndPropsWithKey.current,
applySxDescendantStateStyleCSSIdsAndPropsWithKey.current,
ancestorStyleContext.component
applySxDescendantStateStyleCSSIdsAndPropsWithKey.current
);
const componentDescendantCSSIds = mergeArraysInObjects(
ancestorStyleContext.component,
applyDescendantsStyleCSSIdsAndPropsWithKey,
applyDescendantStateStyleCSSIdsAndPropsWithKey,
ancestorStyleContext.sx
applyDescendantStateStyleCSSIdsAndPropsWithKey
);

return {
Expand Down
8 changes: 0 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2505,14 +2505,6 @@
inline-style-prefixer "^6.0.1"
normalize-css-color "^1.0.2"

"@gluestack-style/react@^0.2.11-alpha.0", "@gluestack-style/react@^0.2.16", "@gluestack-style/react@^0.2.21":
version "0.2.46"
resolved "https://registry.yarnpkg.com/@gluestack-style/react/-/react-0.2.46.tgz#c408f4c05a7374690c8ebd952aa95b0a1d390c4e"
integrity sha512-ujpOIrt/b08svtUSLn4wSCn548H7lIe3oHlBCTHwDvmjheuVsXyIrECtNBA+mrL5mtkCaBmkB9iUJTWD601V+A==
dependencies:
inline-style-prefixer "^6.0.1"
normalize-css-color "^1.0.2"

"@gluestack-ui/actionsheet@^0.2.16", "@gluestack-ui/actionsheet@^0.2.7", "@gluestack-ui/actionsheet@latest":
version "0.2.16"
resolved "https://registry.yarnpkg.com/@gluestack-ui/actionsheet/-/actionsheet-0.2.16.tgz#052a733966c517450a3cd6f832932ccf77924867"
Expand Down

0 comments on commit 86d12ba

Please sign in to comment.