Просмотр исходного кода

feat(feedback): tweak styling (#2791)

- Green stars
- Label for feedback box
- Adjust margins/padding
j8
virtuacoplenny 7 лет назад
Родитель
Сommit
3285d647e6

+ 0
- 4
css/_variables.scss Просмотреть файл

80
 $feedbackTextColor: #000;
80
 $feedbackTextColor: #000;
81
 $feedbackInputTextColor: #333;
81
 $feedbackInputTextColor: #333;
82
 $feedbackInputPlaceholderColor: #777;
82
 $feedbackInputPlaceholderColor: #777;
83
-$rateStarLabelColor: #333;
84
-$rateStarDefault: #ccc;
85
-$rateStarActivity: #165ecc;
86
-$rateStarSize: 34px;
87
 
83
 
88
 /**
84
 /**
89
  * Modals
85
  * Modals

+ 3
- 7
css/modals/feedback/_feedback.scss Просмотреть файл

47
 
47
 
48
 .feedback-dialog {
48
 .feedback-dialog {
49
     .details {
49
     .details {
50
-        margin-top: 20px;
51
-        padding-left: 60px;
52
-        padding-right: 60px;
53
-
54
         textarea {
50
         textarea {
55
             min-height: 100px;
51
             min-height: 100px;
56
         }
52
         }
82
         }
78
         }
83
 
79
 
84
         .star-btn {
80
         .star-btn {
85
-            color: $rateStarDefault;
81
+            color: inherit;
86
             cursor: pointer;
82
             cursor: pointer;
87
             display: inline-block;
83
             display: inline-block;
88
-            font-size: $rateStarSize;
84
+            font-size: 34px;
89
             outline: none;
85
             outline: none;
90
             position: relative;
86
             position: relative;
91
             text-decoration: none;
87
             text-decoration: none;
94
             &.active,
90
             &.active,
95
             &:hover,
91
             &:hover,
96
             &.starHover {
92
             &.starHover {
97
-                color: $rateStarActivity;
93
+                color: #36B37E;
98
             };
94
             };
99
 
95
 
100
         }
96
         }

+ 2
- 1
lang/main.json Просмотреть файл

506
         "average": "Average",
506
         "average": "Average",
507
         "bad": "Bad",
507
         "bad": "Bad",
508
         "good": "Good",
508
         "good": "Good",
509
-        "rateExperience": "Please rate your meeting experience.",
509
+        "detailsLabel": "Tell us more about it.",
510
+        "rateExperience": "Rate your meeting experience",
510
         "veryBad": "Very Bad",
511
         "veryBad": "Very Bad",
511
         "veryGood": "Very Good"
512
         "veryGood": "Very Good"
512
     },
513
     },

+ 1
- 2
react/features/feedback/components/FeedbackDialog.web.js Просмотреть файл

224
                             autoFocus = { true }
224
                             autoFocus = { true }
225
                             className = 'input-control'
225
                             className = 'input-control'
226
                             id = 'feedbackTextArea'
226
                             id = 'feedbackTextArea'
227
-                            isLabelHidden = { true }
227
+                            label = { t('feedback.detailsLabel') }
228
                             onChange = { this._onMessageChange }
228
                             onChange = { this._onMessageChange }
229
-                            placeholder = { t('dialog.feedbackHelp') }
230
                             shouldFitContainer = { true }
229
                             shouldFitContainer = { true }
231
                             value = { message } />
230
                             value = { message } />
232
                     </div>
231
                     </div>

Загрузка…
Отмена
Сохранить