From 828a12ffac60b2fb7e6b0931f610b7ca9f53ffc2 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 22 Jun 2024 08:14:44 +0200 Subject: Props: Support recursive var() if referring to subtree --- test/_props.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/_props.scss') diff --git a/test/_props.scss b/test/_props.scss index d8b550b..1d64080 100644 --- a/test/_props.scss +++ b/test/_props.scss @@ -240,6 +240,16 @@ @include assert-equal(props.get(--primary --text), var(--buttons--primary--text), 'Get via namespace "buttons" --primary --text'); @include assert-equal(props.get(--secondary --text, $default: false), var(--buttons--secondary--text, false), 'Get via namespace "buttons" --secondary --text with default'); } + @include assert-equal(props.get(--buttons), ( + --primary: ( + --background: var(--buttons--primary--background), + --text: var(--buttons--primary--text) + ), + --default: ( + --background: var(--buttons--default--background), + --text: var(--buttons--default--text) + ) + ), 'Get --buttons recursively'); @include assert-equal(props.clear(), null, 'Delete default tree'); } -- cgit v1.2.3-54-g00ecf