Kaynağa Gözat

fix(icons): scope white svgs to Icon components

master
Leonard Kim 5 yıl önce
ebeveyn
işleme
92e7be34e3

+ 1
- 1
css/_base.scss Dosyayı Görüntüle

@@ -33,7 +33,7 @@ body {
33 33
     }
34 34
 }
35 35
 
36
-svg {
36
+.jitsi-icon svg {
37 37
     fill: white;
38 38
 }
39 39
 

+ 5
- 2
react/features/base/icons/components/Icon.js Dosyayı Görüntüle

@@ -11,7 +11,7 @@ type Props = {
11 11
     /**
12 12
      * Class name for the web platform, if any.
13 13
      */
14
-    className?: string,
14
+    className: string,
15 15
 
16 16
     /**
17 17
      * Color of the icon (if not provided by the style object).
@@ -68,7 +68,7 @@ export default function Icon(props: Props) {
68 68
 
69 69
     return (
70 70
         <Container
71
-            className = { className }
71
+            className = { `jitsi-icon ${className}` }
72 72
             style = { restStyle }>
73 73
             <IconComponent
74 74
                 fill = { calculatedColor }
@@ -79,3 +79,6 @@ export default function Icon(props: Props) {
79 79
     );
80 80
 }
81 81
 
82
+Icon.defaultProps = {
83
+    className: ''
84
+};

Loading…
İptal
Kaydet