11@use " ../../themes/ionic/ionic.globals.scss" as globals ;
2- @import " ./list.ionic.vars.scss" ;
32
43// Ionic List
54// --------------------------------------------------
@@ -51,7 +50,7 @@ ion-list {
5150 * The top of the list should not have a border radius because
5251 * that would include the header.
5352 */
54- @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 );
5554 }
5655
5756 // Target the first element in the list after the header
@@ -61,7 +60,7 @@ ion-list {
6160 * The bottom of the first element should not have a border radius
6261 * because that would not look connected to the rest.
6362 */
64- @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 );
6564 }
6665
6766 /* Soft */
@@ -71,7 +70,7 @@ ion-list {
7170 * The top of the list should not have a border radius because
7271 * that would include the header.
7372 */
74- @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 );
7574 }
7675
7776 // Target the first element in the list after the header
@@ -81,7 +80,7 @@ ion-list {
8180 * The bottom of the first element should not have a border radius
8281 * because that would not look connected to the rest.
8382 */
84- @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 );
8584 }
8685
8786 /* Rectangular */
@@ -94,8 +93,8 @@ ion-list {
9493 @include globals .border-radius (
9594 initial ,
9695 initial ,
97- $list-ionic- border-radius-rectangular ,
98- $list-ionic- border-radius-rectangular
96+ globals . $ion- border-radius-0 ,
97+ globals . $ion- border-radius-0
9998 );
10099 }
101100
@@ -107,8 +106,8 @@ ion-list {
107106 * because that would not look connected to the rest.
108107 */
109108 @include globals .border-radius (
110- $list-ionic- border-radius-rectangular ,
111- $list-ionic- border-radius-rectangular ,
109+ globals . $ion- border-radius-0 ,
110+ globals . $ion- border-radius-0 ,
112111 initial ,
113112 initial
114113 );
@@ -118,17 +117,17 @@ ion-list {
118117.list-ionic :not (:has (ion-list-header )) {
119118 /* Round */
120119 & .list-round {
121- @include globals .border-radius ($list-ionic- border-radius-round );
120+ @include globals .border-radius (globals . $ion- border-radius-400 );
122121 }
123122
124123 /* Soft */
125124 & .list-soft {
126- @include globals .border-radius ($list-ionic- border-radius-soft );
125+ @include globals .border-radius (globals . $ion- border-radius-200 );
127126 }
128127
129128 /* Rectangular */
130129 & .list-rectangular {
131- @include globals .border-radius ($list-ionic- border-radius-rectangular );
130+ @include globals .border-radius (globals . $ion- border-radius-0 );
132131 }
133132}
134133
0 commit comments