Skip to content

Commit b0dc856

Browse files
committed
feat(item): add sass variable to override avatar border radius
closes #10763
1 parent 8e43863 commit b0dc856

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

src/components/item/item.ios.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ $item-ios-paragraph-text-color: #8e9093 !default;
1818
/// @prop - Size of the avatar in the item
1919
$item-ios-avatar-size: 36px !default;
2020

21+
/// @prop - Border radius of the avatar in the item
22+
$item-ios-avatar-border-radius: 50% !default;
23+
2124
/// @prop - Size of the thumbnail in the item
2225
$item-ios-thumbnail-size: 56px !default;
2326

@@ -170,7 +173,7 @@ $item-ios-sliding-content-background: $list-ios-background-color !default;
170173
width: $item-ios-avatar-size;
171174
height: $item-ios-avatar-size;
172175

173-
border-radius: 50%;
176+
border-radius: $item-ios-avatar-border-radius;
174177

175178
overflow: hidden;
176179
}

src/components/item/item.md.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ $item-md-font-size: 1.6rem !default;
1818
/// @prop - Size of the avatar in the item
1919
$item-md-avatar-size: 40px !default;
2020

21+
/// @prop - Border radius of the avatar in the item
22+
$item-md-avatar-border-radius: 50% !default;
23+
2124
/// @prop - Size of the thumbnail in the item
2225
$item-md-thumbnail-size: 80px !default;
2326

@@ -192,7 +195,7 @@ $item-md-sliding-content-background: $list-md-background-color !default;
192195
width: $item-md-avatar-size;
193196
height: $item-md-avatar-size;
194197

195-
border-radius: 50%;
198+
border-radius: $item-md-avatar-border-radius;
196199

197200
overflow: hidden;
198201
}

src/components/item/item.wp.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ $item-wp-font-size: 1.6rem !default;
2424
/// @prop - Size of the avatar in the item
2525
$item-wp-avatar-size: 40px !default;
2626

27+
/// @prop - Border radius of the avatar in the item
28+
$item-wp-avatar-border-radius: 50% !default;
29+
2730
/// @prop - Size of the thumbnail in the item
2831
$item-wp-thumbnail-size: 80px !default;
2932

@@ -204,7 +207,7 @@ $item-wp-sliding-content-background: $list-wp-background-color !default;
204207
width: $item-wp-avatar-size;
205208
height: $item-wp-avatar-size;
206209

207-
border-radius: 50%;
210+
border-radius: $item-wp-avatar-border-radius;
208211
}
209212

210213

0 commit comments

Comments
 (0)