瀏覽代碼

fix: set a default color for text in modal dialogs

Some atlaskit components, such as field-text, inherit text color.
This is a problem with components that are white as they will
inherit $defaultColor, which is a light gray. So instead, for
the atlaskit modal, set a color for all the form content so it
can be inherited instead.
j8
Leonard Kim 8 年之前
父節點
當前提交
f9585430bb

+ 1
- 0
css/_variables.scss 查看文件

@@ -83,6 +83,7 @@ $rateStarSize: 34px;
83 83
  * Modals
84 84
  */
85 85
 $modalButtonFontSize: 14px;
86
+$modalTextColor: #333;
86 87
 
87 88
 /**
88 89
  * Notifications

+ 3
- 0
css/modals/_dialog.scss 查看文件

@@ -77,6 +77,9 @@
77 77
     }
78 78
 }
79 79
 
80
+.modal-dialog-form {
81
+    color: $modalTextColor;
82
+}
80 83
 .modal-dialog-footer {
81 84
     font-size: $modalButtonFontSize;
82 85
 }

+ 0
- 1
css/modals/speaker_stats/_speaker_stats.scss 查看文件

@@ -1,7 +1,6 @@
1 1
 .speaker-stats {
2 2
     list-style: none;
3 3
     padding: 0;
4
-    color: $auiDialogColor;
5 4
     width: 100%;
6 5
     font-weight: 500;
7 6
 

+ 1
- 0
react/features/base/dialog/components/Dialog.web.js 查看文件

@@ -56,6 +56,7 @@ class Dialog extends AbstractDialog {
56 56
                 width = { this.props.width || 'medium' }>
57 57
                 <div>
58 58
                     <form
59
+                        className = 'modal-dialog-form'
59 60
                         id = 'modal-dialog-form'
60 61
                         onSubmit = { this._onSubmit }>
61 62
                         { this.props.children }

Loading…
取消
儲存