Skip to content

Commit

Permalink
Theme: Add popup background design token (Message Dialog) (ElemeFE#15412
Browse files Browse the repository at this point in the history
)
  • Loading branch information
iamkun authored and lzq4047 committed May 22, 2020
1 parent df5cc6f commit 5bc594f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 0 additions & 2 deletions examples/components/theme-configurator/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
@select="onSelectChange"
></action-panel>
<main-panel
ref='configuratorMain'
v-if="defaultConfig"
:currentConfig="currentConfig"
:defaultConfig="defaultConfig"
Expand Down Expand Up @@ -180,7 +179,6 @@ export default {
bus.$emit(ACTION_COMPONECT_SELECT, val);
this.selectedComponent = val;
this.filterCurrentConfig();
this.$refs.configuratorMain.focus();
}
},
watch: {
Expand Down
5 changes: 3 additions & 2 deletions packages/theme-chalk/src/common/popup.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import "./var.scss";
@import "../mixins/mixins";

.v-modal-enter {
Expand Down Expand Up @@ -30,8 +31,8 @@
top: 0;
width: 100%;
height: 100%;
opacity: 0.5;
background: #000;
opacity: $--popup-modal-opacity;
background: $--popup-modal-background-color;
}

@include b(popup-parent) {
Expand Down
7 changes: 7 additions & 0 deletions packages/theme-chalk/src/common/var.scss
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,13 @@ $--pagination-button-disabled-background-color: $--color-white !default;
/// color||Color|0
$--pagination-hover-color: $--color-primary !default;

/* Popup
-------------------------- */
/// color||Color|0
$--popup-modal-background-color: $--color-black !default;
/// opacity||Other|1
$--popup-modal-opacity: 0.5 !default;

/* Popover
-------------------------- */
/// color||Color|0
Expand Down

0 comments on commit 5bc594f

Please sign in to comment.