Skip to content

Commit

Permalink
feat: create a transparent backdrop on off canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Sep 12, 2024
1 parent da0ea5e commit 71074b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/components/PageOffcanvas/PageOffcanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ defineProps({
:title="title"
class="page-offcanvas"
header-class="page-offcanvas__header"
hide-backdrop
>
<template #header="{ hide }">
<h5 v-if="title" class="page-offcanvas__header__title m-0">{{ title }}</h5>
Expand Down
7 changes: 4 additions & 3 deletions src/utils/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ $modal-content-inner-border-radius: subtract($modal-content-border-radius, $moda
$modal-content-box-shadow-xs: 1px 1px 8px 5px rgba($black, 0.1);
$modal-content-box-shadow-sm-up: 1px 1px 8px 5px rgba($black, 0.1);

$modal-backdrop-bg: $black;
$modal-backdrop-bg: $secondary;
$modal-backdrop-opacity: .5;

$modal-header-border-color: transparent;
Expand All @@ -197,8 +197,9 @@ $modal-xl: 1140px;
$offcanvas-box-shadow: none;
$offcanvas-border-color: var(--bs-tertiary);
$offcanvas-width: 300px;
$offcanvas-padding-y: $spacer-lg;
$offcanvas-padding-x: $spacer-lg;
$offcanvas-padding-y: $spacer;
$offcanvas-padding-x: $spacer-xl;
$offcanvas-backdrop-bg: transparent;

$kbd-padding-y: $spacer-xxs;
$kbd-padding-x: $spacer-xs;
Expand Down

0 comments on commit 71074b7

Please sign in to comment.