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 {
|
.mx_Icon {
|
||||||
|
box-sizing: border-box;
|
||||||
|
display: inline-block;
|
||||||
|
mask-origin: content-box;
|
||||||
mask-position: center;
|
mask-position: center;
|
||||||
mask-repeat: no-repeat;
|
mask-repeat: no-repeat;
|
||||||
mask-size: contain;
|
mask-size: contain;
|
||||||
|
padding: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_Icon_16 {
|
.mx_Icon_16 {
|
||||||
|
|
|
@ -56,6 +56,7 @@ export const Icon: React.FC<IconProps> = ({
|
||||||
|
|
||||||
const styles: React.CSSProperties = {
|
const styles: React.CSSProperties = {
|
||||||
maskImage: `url("${iconTypeMap.get(type)}")`,
|
maskImage: `url("${iconTypeMap.get(type)}")`,
|
||||||
|
WebkitMaskImage: `url("${iconTypeMap.get(type)}")`,
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue