mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(android): CSS style not working properly in modal pages (#10070)
This commit is contained in:
committed by
Nathan Walker
parent
6f1a5d16e3
commit
95c3b3026d
@@ -3,7 +3,7 @@ import { isCssVariable } from '../../core/properties';
|
||||
import { isNullOrUndefined } from '../../../utils/types';
|
||||
|
||||
import * as cssParser from '../../../css';
|
||||
import { Combinator as ICombinator , SimpleSelectorSequence as ISimpleSelectorSequence, Selector as ISelector, SimpleSelector as ISimpleSelector, parseSelector} from '../../../css/parser';
|
||||
import { Combinator as ICombinator, SimpleSelectorSequence as ISimpleSelectorSequence, Selector as ISelector, SimpleSelector as ISimpleSelector, parseSelector } from '../../../css/parser';
|
||||
|
||||
/**
|
||||
* An interface describing the shape of a type on which the selectors may apply.
|
||||
@@ -11,6 +11,7 @@ import { Combinator as ICombinator , SimpleSelectorSequence as ISimpleSelectorSe
|
||||
*/
|
||||
export interface Node {
|
||||
parent?: Node;
|
||||
_modalParent?: Node;
|
||||
|
||||
id?: string;
|
||||
nodeName?: string;
|
||||
@@ -384,7 +385,7 @@ export class Selector extends SelectorCore {
|
||||
return !!node;
|
||||
} else {
|
||||
let ancestor = node;
|
||||
while ((ancestor = ancestor.parent)) {
|
||||
while ((ancestor = ancestor.parent ?? ancestor._modalParent)) {
|
||||
if ((node = group.match(ancestor))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user