Skip to content

Commit 05668e3

Browse files
committed
PeopleAutocomplete: Give user and user-group items 48+ px touch target
1 parent 03c99c5 commit 05668e3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/user-groups/UserGroupItem.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ export default function UserGroupItem(props: Props): Node {
4242
flexDirection: 'row',
4343
alignItems: 'center',
4444
padding: 8,
45+
46+
// Minimum touch target height:
47+
// https://material.io/design/usability/accessibility.html#layout-and-typography
48+
minHeight: 48,
4549
},
4650
}),
4751
[],

src/users/UserItem.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ export function UserItemRaw<
6565
alignItems: 'center',
6666
paddingVertical: 8,
6767
paddingHorizontal: size === 'large' ? 16 : 8,
68+
69+
// Minimum touch target height:
70+
// https://material.io/design/usability/accessibility.html#layout-and-typography
71+
minHeight: 48,
6872
},
6973
selectedRow: {
7074
backgroundColor: BRAND_COLOR,

0 commit comments

Comments
 (0)