Skip to content

Commit 8b58dc2

Browse files
author
Christian Bedon
committed
feat: add flag to hide headline background on mobile
1 parent af7c5da commit 8b58dc2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

@kiva/kv-components/src/vue/KvSideSheet.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,10 @@ export default {
195195
return false;
196196
},
197197
},
198-
hideHeadlineBg: {
198+
/**
199+
* Whether to hide the background of the headline section on mobile (e.g., in Borrower Profile Sidesheet)
200+
* */
201+
hideHeadlineBgOnMobile: {
199202
type: Boolean,
200203
default: false,
201204
},
@@ -207,7 +210,7 @@ export default {
207210
kvTrackFunction,
208211
trackEventCategory,
209212
widthDimensions,
210-
hideHeadlineBg,
213+
hideHeadlineBgOnMobile,
211214
} = toRefs(props);
212215
213216
const open = ref(false);
@@ -225,7 +228,7 @@ export default {
225228
226229
const contentHeight = computed(() => {
227230
const height = windowHeight.value
228-
- (hideHeadlineBg.value ? 0 : heights.headline)
231+
- (hideHeadlineBgOnMobile.value ? 0 : heights.headline)
229232
- heights.controls;
230233
return Math.max(height, 0);
231234
});

0 commit comments

Comments
 (0)