Skip to content

Commit dfae54d

Browse files
authored
Merge pull request #11379 from absolunet/fix-elseif
Replace deprecated `@elseif` for `@else if`
2 parents e2571bb + 28c348b commit dfae54d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

scss/components/_table.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ $table-stack-breakpoint: medium !default;
246246
}
247247

248248
// Darkens the odd striped table rows.
249-
@elseif($table-stripe == odd) {
249+
@else if($table-stripe == odd) {
250250
&:not(.unstriped) tr:nth-of-type(odd):hover {
251251
background-color: $table-row-stripe-hover;
252252
}
@@ -262,7 +262,7 @@ $table-stack-breakpoint: medium !default;
262262
}
263263

264264
// Darkens the odd striped table rows.
265-
@elseif($table-stripe == odd) {
265+
@else if($table-stripe == odd) {
266266
&.striped tr:nth-of-type(odd):hover {
267267
background-color: $table-row-stripe-hover;
268268
}

scss/xy-grid/_cell.scss

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727

2828
// Parsing "n of n" or "n/n" expressions
29-
@elseif type-of($size) == 'list' {
29+
@else if type-of($size) == 'list' {
3030
@if length($size) != 3 {
3131
@error 'Wrong syntax for xy-cell-size(). Use the format "n of n" or "n/n".';
3232
}
@@ -52,13 +52,13 @@
5252
min-height: 0px;
5353
min-width: 0px;
5454
}
55-
@elseif ($size == 'auto') {
55+
@else if ($size == 'auto') {
5656
flex: 1 1 0px; // sass-lint:disable-line zero-unit
5757
}
58-
@elseif ($size == 'shrink') {
58+
@else if ($size == 'shrink') {
5959
flex: 0 0 auto;
6060
}
61-
@elseif ($size == 'grow') {
61+
@else if ($size == 'grow') {
6262
flex: 1 0 auto;
6363
}
6464
}
@@ -79,11 +79,11 @@
7979
$val: if($margin-gutter == 0, 100%, calc(100% - #{rem-calc($margin-gutter)}));
8080
#{$direction}: $val;
8181
}
82-
@elseif ($size == 'auto') {
82+
@else if ($size == 'auto') {
8383
#{$direction}: auto;
8484
$val: if($margin-gutter == 0, 100%, calc(100% - #{rem-calc($margin-gutter)}));
8585
}
86-
@elseif ($size == 'shrink') {
86+
@else if ($size == 'shrink') {
8787
#{$direction}: auto;
8888
}
8989
@else {

scss/xy-grid/_gutters.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535
}
3636
}
37-
@elseif (type-of($gutters) == 'number') {
37+
@else if (type-of($gutters) == 'number') {
3838
$gutter: rem-calc($gutters) / 2;
3939

4040
// Loop through each gutter position

0 commit comments

Comments
 (0)