Переглянути джерело

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.
master
Leonard Kim 8 роки тому
джерело
коміт
f9585430bb

+ 1
- 0
css/_variables.scss Переглянути файл

83
  * Modals
83
  * Modals
84
  */
84
  */
85
 $modalButtonFontSize: 14px;
85
 $modalButtonFontSize: 14px;
86
+$modalTextColor: #333;
86
 
87
 
87
 /**
88
 /**
88
  * Notifications
89
  * Notifications

+ 3
- 0
css/modals/_dialog.scss Переглянути файл

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

+ 0
- 1
css/modals/speaker_stats/_speaker_stats.scss Переглянути файл

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

+ 1
- 0
react/features/base/dialog/components/Dialog.web.js Переглянути файл

56
                 width = { this.props.width || 'medium' }>
56
                 width = { this.props.width || 'medium' }>
57
                 <div>
57
                 <div>
58
                     <form
58
                     <form
59
+                        className = 'modal-dialog-form'
59
                         id = 'modal-dialog-form'
60
                         id = 'modal-dialog-form'
60
                         onSubmit = { this._onSubmit }>
61
                         onSubmit = { this._onSubmit }>
61
                         { this.props.children }
62
                         { this.props.children }

Завантаження…
Відмінити
Зберегти