Skip to content
This repository was archived by the owner on Jan 9, 2022. It is now read-only.

Commit b78c9ec

Browse files
committed
feat: make depressed prop for GDialog
1 parent dfd4220 commit b78c9ec

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

Diff for: src/gitart-vue-dialog/components/GDialog.vue

+9
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
:width="width"
2020
:max-width="maxWidth"
2121
:scrollable="scrollable"
22+
:depressed="depressed"
2223
>
2324
<slot />
2425
</GDialogContent>
@@ -88,6 +89,14 @@ export default defineComponent({
8889
type: Boolean,
8990
default: false,
9091
},
92+
93+
/**
94+
* removes box-shadow for content
95+
*/
96+
depressed: {
97+
type: Boolean,
98+
default: false,
99+
},
91100
},
92101
93102
emits: ['update:modelValue'],

Diff for: src/gitart-vue-dialog/components/GDialogContent.vue

+16-4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ export default defineComponent({
2525
type: Boolean,
2626
default: false,
2727
},
28+
29+
/**
30+
* removes box-shadow for content
31+
*/
32+
depressed: {
33+
type: Boolean,
34+
default: false,
35+
},
2836
},
2937
3038
setup(props) {
@@ -33,6 +41,7 @@ export default defineComponent({
3341
'q-dialog-content',
3442
{
3543
'q-dialog-content--scrollable': props.scrollable,
44+
'q-dialog-content--depressed': props.depressed,
3645
},
3746
])
3847
@@ -55,10 +64,13 @@ export default defineComponent({
5564
transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
5665
width: 100%;
5766
z-index: inherit;
58-
box-shadow:
59-
0 11px 15px -7px rgb(0 0 0 / 20%),
60-
0 24px 38px 3px rgb(0 0 0 / 14%),
61-
0 9px 46px 8px rgb(0 0 0 / 12%);
67+
68+
&:not(#{$dialog}--depressed) {
69+
box-shadow:
70+
0 11px 15px -7px rgb(0 0 0 / 20%),
71+
0 24px 38px 3px rgb(0 0 0 / 14%),
72+
0 9px 46px 8px rgb(0 0 0 / 12%);
73+
}
6274
6375
&:not(#{$dialog}--fullscreen) {
6476
max-height: 90%;

0 commit comments

Comments
 (0)