From 9df4a41f916389715d505730268459326068e9b6 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 21 Jan 2026 11:27:04 +0100 Subject: Fix SASS deprecation warning for if() --- src/_contexts.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/_contexts.scss') diff --git a/src/_contexts.scss b/src/_contexts.scss index ed376a2..e766321 100644 --- a/src/_contexts.scss +++ b/src/_contexts.scss @@ -241,7 +241,8 @@ $stacks: (); @return false; } - $end-idx: if($check-head-only, list.length($context-stack), 1); + $end-idx: if(sass($check-head-only): list.length($context-stack); else: 1); + @for $i from list.length($context-stack) through $end-idx { $context: list.nth($context-stack, $i); -- cgit v1.2.3-70-g09d2