This commit is contained in:
Michael Weimann 2022-10-12 19:21:32 +02:00 committed by GitHub
parent b871456681
commit 7cb2f941d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -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 {

View file

@ -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 (