Fix Icon (#9401)
This commit is contained in:
parent
b871456681
commit
7cb2f941d3
2 changed files with 5 additions and 0 deletions
|
@ -15,9 +15,13 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
.mx_Icon {
|
||||
box-sizing: border-box;
|
||||
display: inline-block;
|
||||
mask-origin: content-box;
|
||||
mask-position: center;
|
||||
mask-repeat: no-repeat;
|
||||
mask-size: contain;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
.mx_Icon_16 {
|
||||
|
|
|
@ -56,6 +56,7 @@ export const Icon: React.FC<IconProps> = ({
|
|||
|
||||
const styles: React.CSSProperties = {
|
||||
maskImage: `url("${iconTypeMap.get(type)}")`,
|
||||
WebkitMaskImage: `url("${iconTypeMap.get(type)}")`,
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue