IconButton表单材质设计未在iOS中显示

时间:2017-04-24 09:03:15

标签: reactjs button redux material-ui

我正在使用material-ui和react / redux / webpack。我的IconButton未显示在 iOS 中(未在Android中查看,但在iOS上的Safari和Chrome上查看)。图标显示在桌面上,但不显示在iOs(移动设备)上。

<a href={`http://maps.google.com/?q=${building.street}, ${building.zip} ${building.city}`} target="_blank">
   <IconButton style={style} tooltip="Google Maps"> <Direction color="#00AEDB"/> </IconButton>
</a>

任何想法为什么它没有出现在iOS?

例如,以下RaisedButton在iOS和桌面上正确显示

<RaisedButton label="Einloggen" type="submit" backgroundColor="#8ec127" className="card-margin" icon={<VerifiedUser />}/>

1 个答案:

答案 0 :(得分:0)

我的错!

使用iconStyle代替style

// Solution:
const styles = {navIcon: {width: 25, height: 25},..}
iconStyle{styles.navIcon}
相关问题