Skip to content

Commit

Permalink
style(select-field): dismiss button padding (#168 by @frankcalise)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankcalise authored Jul 3, 2024
1 parent 10f7017 commit e743047
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/recipes/SelectFieldWithBottomSheet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ export const SelectField = forwardRef(function SelectField(
}
>
<BottomSheetFlatList
style={{ marginBottom: bottom + (multiple ? 56 : 0) }}
style={{ marginBottom: bottom + (multiple ? spacing.xl * 2 : 0) }}
data={options}
keyExtractor={(o) => o.value}
renderItem={({ item, index }) => (
Expand All @@ -485,6 +485,7 @@ export const SelectField = forwardRef(function SelectField(
// success-line-start
const $bottomSheetFooter: ViewStyle = {
paddingHorizontal: spacing.lg,
paddingBottom: spacing.xs,
};

const $listItem: ViewStyle = {
Expand Down Expand Up @@ -633,7 +634,7 @@ export const SelectField = forwardRef(function SelectField(
}
>
<BottomSheetFlatList
style={{ marginBottom: bottom + (multiple ? 56 : 0) }}
style={{ marginBottom: bottom + (multiple ? spacing.xl * 2 : 0) }}
data={options}
keyExtractor={(o) => o.value}
renderItem={({ item, index }) => (
Expand All @@ -656,6 +657,7 @@ export const SelectField = forwardRef(function SelectField(

const $bottomSheetFooter: ViewStyle = {
paddingHorizontal: spacing.lg,
paddingBottom: spacing.xs,
};

const $listItem: ViewStyle = {
Expand Down

0 comments on commit e743047

Please sign in to comment.