11@use " ../../themes/ionic/ionic.globals.scss" as globals ;
2- @use " ../item/item.ionic.vars" as itemVars ;
3- @import " ./list.ionic.vars.scss" ;
42
53// Ionic List
64// --------------------------------------------------
@@ -11,7 +9,7 @@ ion-list {
119
1210 display : block ;
1311
14- background : #{itemVars . $item-ionic-background } ;
12+ background : #{globals . $ion-primitives-base-white } ;
1513
1614 contain : content ;
1715 list-style-type : none ;
@@ -52,7 +50,7 @@ ion-list {
5250 * The top of the list should not have a border radius because
5351 * that would include the header.
5452 */
55- @include globals .border-radius (initial , initial , $list-ionic- border-radius-round , $list-ionic- border-radius-round );
53+ @include globals .border-radius (initial , initial , globals . $ion- border-radius-400 , globals . $ion- border-radius-400 );
5654 }
5755
5856 // Target the first element in the list after the header
@@ -62,7 +60,7 @@ ion-list {
6260 * The bottom of the first element should not have a border radius
6361 * because that would not look connected to the rest.
6462 */
65- @include globals .border-radius ($list-ionic- border-radius-round , $list-ionic- border-radius-round , initial , initial );
63+ @include globals .border-radius (globals . $ion- border-radius-400 , globals . $ion- border-radius-400 , initial , initial );
6664 }
6765
6866 /* Soft */
@@ -72,7 +70,7 @@ ion-list {
7270 * The top of the list should not have a border radius because
7371 * that would include the header.
7472 */
75- @include globals .border-radius (initial , initial , $list-ionic- border-radius-soft , $list-ionic- border-radius-soft );
73+ @include globals .border-radius (initial , initial , globals . $ion- border-radius-200 , globals . $ion- border-radius-200 );
7674 }
7775
7876 // Target the first element in the list after the header
@@ -82,7 +80,7 @@ ion-list {
8280 * The bottom of the first element should not have a border radius
8381 * because that would not look connected to the rest.
8482 */
85- @include globals .border-radius ($list-ionic- border-radius-soft , $list-ionic- border-radius-soft , initial , initial );
83+ @include globals .border-radius (globals . $ion- border-radius-200 , globals . $ion- border-radius-200 , initial , initial );
8684 }
8785
8886 /* Rectangular */
@@ -92,12 +90,7 @@ ion-list {
9290 * The top of the list should not have a border radius because
9391 * that would include the header.
9492 */
95- @include globals .border-radius (
96- initial ,
97- initial ,
98- $list-ionic-border-radius-rectangular ,
99- $list-ionic-border-radius-rectangular
100- );
93+ @include globals .border-radius (initial , initial , globals .$ion-border-radius-0 , globals .$ion-border-radius-0 );
10194 }
10295
10396 // Target the first element in the list after the header
@@ -107,29 +100,24 @@ ion-list {
107100 * The bottom of the first element should not have a border radius
108101 * because that would not look connected to the rest.
109102 */
110- @include globals .border-radius (
111- $list-ionic-border-radius-rectangular ,
112- $list-ionic-border-radius-rectangular ,
113- initial ,
114- initial
115- );
103+ @include globals .border-radius (globals .$ion-border-radius-0 , globals .$ion-border-radius-0 , initial , initial );
116104 }
117105}
118106
119107.list-ionic :not (:has (ion-list-header )) {
120108 /* Round */
121109 & .list-round {
122- @include globals .border-radius ($list-ionic- border-radius-round );
110+ @include globals .border-radius (globals . $ion- border-radius-400 );
123111 }
124112
125113 /* Soft */
126114 & .list-soft {
127- @include globals .border-radius ($list-ionic- border-radius-soft );
115+ @include globals .border-radius (globals . $ion- border-radius-200 );
128116 }
129117
130118 /* Rectangular */
131119 & .list-rectangular {
132- @include globals .border-radius ($list-ionic- border-radius-rectangular );
120+ @include globals .border-radius (globals . $ion- border-radius-0 );
133121 }
134122}
135123
0 commit comments