【问题标题】:IconButton form material design not showing up in iOSIconButton 表单材料设计未在 iOS 中显示
【发布时间】:2017-09-20 21:14:44
【问题描述】:

我正在使用 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 />}/>

【问题讨论】:

    标签: reactjs button redux material-ui


    【解决方案1】:

    我的错!

    使用iconStyle 而不是style

    // Solution:
    const styles = {navIcon: {width: 25, height: 25},..}
    iconStyle{styles.navIcon}
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-11-07
      • 2019-07-31
      • 2016-04-25
      • 2018-06-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-15
      相关资源
      最近更新 更多