Skip to content

Commit

Permalink
refactor(selector.,class()): retrieve dictionary from $dictionary i…
Browse files Browse the repository at this point in the history
…f key `class` is found.
  • Loading branch information
sciborrudnicki committed Aug 30, 2023
1 parent df48216 commit ae518d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions selector/_selector.class.function.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
map.get(get.map($name) or (), dictionary, get.map($name) or ())
);

// Retrieve class dictionary if passed.
$dictionary: if(map.has-key($dictionary, class), map.get($dictionary, class), $dictionary);

// Name.
$name: remove.list(remove.list(parent-first(remove.map($name)), $bracketed: only), 0);

Expand Down

0 comments on commit ae518d4

Please sign in to comment.