We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
string.index()
1 parent 4d5d2b7 commit c21bdb6Copy full SHA for c21bdb6
variant/indicator/_indicator.index.function.scss
@@ -1,15 +1,15 @@
1
// Modules.
2
-@use '../../string';
+@use '../../string/string.index.function' as string-index;
3
4
// Status: TODO: Consider use `list.indexes()`.
5
// The `indicator.index()` function.
6
// @param `$item`
7
// @param `$indicator`
8
// @returns
9
@function index($item, $indicator) {
10
- @each $value in $item {
11
- @if type-of($value) == string {
12
- $index: string.index(#{$value}, $indicator);
+ @each $element in $item {
+ @if type-of($element) == string {
+ $index: string-index.index(#{$element}, $indicator);
13
@if $index and $index > 0 {
14
@return $index;
15
}
@@ -19,4 +19,6 @@
19
20
21
// Examples.
22
+// @debug index(+primary, '+');
23
// @debug index(+primary test, '+');
24
+// @debug index(primary '+test', '+');
0 commit comments