@testgorilla/tgo-ui 2.7.0 → 2.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testgorilla/tgo-ui",
3
- "version": "2.7.0",
3
+ "version": "2.7.2",
4
4
  "lint-staged": {
5
5
  "src/**/*.ts": [
6
6
  "eslint --fix",
@@ -362,6 +362,55 @@
362
362
  }
363
363
  }
364
364
 
365
+ // this overrides for dark ui-dropdown used in coderunner only. will be removed with proper rebranded dark theme
366
+ *[theme="dark"], .dark {
367
+ &, .ui-field[theme="dark"] {
368
+ .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-text-field-wrapper {
369
+ &:hover, &.mdc-text-field--focused, & {
370
+ .mdc-notched-outline__leading, .mdc-notched-outline__notch, .mdc-notched-outline__trailing {
371
+ border-color: $tgo-white !important;
372
+ }
373
+
374
+ .mat-mdc-form-field-flex {
375
+ .mat-mdc-floating-label.mdc-floating-label--float-above {
376
+ color: $grayscale-40 !important;
377
+ }
378
+ }
379
+
380
+ ui-icon svg {
381
+ color: $grayscale-40 !important;
382
+ }
383
+ }
384
+ }
385
+ }
386
+
387
+ .ui-dropdown-list.mat-accent {
388
+ background-color: $grayscale-50;
389
+
390
+ mat-option {
391
+ background-color: $grayscale-50 !important;
392
+
393
+ &:hover, &.mat-mdc-option-active {
394
+ background-color: $grayscale-40 !important;
395
+ }
396
+
397
+ &, &.mat-mdc-option-active {
398
+ .mdc-list-item__primary-text {
399
+ color: $tgo-white !important;
400
+ }
401
+ }
402
+ }
403
+ }
404
+
405
+ .mat-mdc-select-placeholder, .ui-field[theme="dark"] .mdc-text-field__input::placeholder {
406
+ color: $grayscale-40;
407
+ }
408
+
409
+ .ui-dropdown .mat-mdc-select, .ui-field[theme="dark"] .mdc-text-field__input {
410
+ color: $tgo-white;
411
+ }
412
+ }
413
+
365
414
  .cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list {
366
415
  border-radius: 10px !important;
367
416
  box-shadow: $box-shadow-hover-state;