-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TabBar嵌套SearchBar样式异常 #2447
Comments
Translation of this issue: TabBar nested SearchBar style exception
Version2.1.8 EnvironmentOsx 10.13, node v6.10.2 Reproduction linkhttps://codepen.io/maxid/pen/aYPBQG?editors=0110 Steps to reproduceJust place the SearchBar inside the TabBar's TabBar.Item to reproduce What is expected?Https://mobile.ant.design/kitchen-sink/components/search-bar?lang=en#search-bar-demo-0 What is actually happening?Search Icon Shift, Clear Icon Shift, input cursor shift Found that the height of the Search Icon and Clear Icon is invalid, |
Maybe you need to override the style yourself ? |
@warmhug 这个是ant-design-mobile组件本身组合引起的问题(理解是一个bug),不应该由使用人员重写样式去解决吧,毕境这么多组件,可能会有很多种组合,当然目前我会自己花时间解决这个问题 ... |
老哥,自己调样式吧,我也是自己调的,同样的情况,还有一种可能就是同时用了antd和antd-mobile的组件重复冲突 |
@biubug123 你是怎样调的,分享下~ |
@maxid 你可以这样试试,找到 ant-mobile/lib/tabs/style/index.css,注掉第二个样式选择器, |
@maxid 当然,如果你引入的是antd-mobile/dist/antd-mobile.css或.less这个合并后的文件,你就对应搜索找到 |
Version
2.1.8
Environment
osx 10.13, node v6.10.2
Reproduction link
https://codepen.io/maxid/pen/aYPBQG?editors=0110
Steps to reproduce
只需要将SearchBar放置在TabBar的TabBar.Item内即可重现
What is expected?
https://mobile.ant.design/kitchen-sink/components/search-bar?lang=zh-CN#search-bar-demo-0
样式不要走样
What is actually happening?
Search Icon 移位,Clear Icon 移位
发现Search Icon和Clear Icon的宽高无效
The text was updated successfully, but these errors were encountered: