Skip to content
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

Input输入框 后置标签和前缀图标混合使用时样式混乱 #1795

Closed
slobber opened this issue Jul 6, 2018 · 2 comments · Fixed by #1857
Closed

Input输入框 后置标签和前缀图标混合使用时样式混乱 #1795

slobber opened this issue Jul 6, 2018 · 2 comments · Fixed by #1857
Assignees
Labels

Comments

@slobber
Copy link

slobber commented Jul 6, 2018

Version

1.1.1

Environment

任何环境

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-sqofdy?file=src/app/app.component.html

Steps to reproduce

只要代码是:

<nz-input-group nzPrefixIcon="anticon anticon-user" nzAddOnAfter="@example.com">
	<input type="text" nz-input placeholder="邮箱地址">
</nz-input-group>

What is expected?

见重现链接

What is actually happening?

见重现链接

Other?

@hsuanxyz
Copy link
Member

hsuanxyz commented Jul 7, 2018

@vthinkxie 生成的结构又不一样了,以后更新样式需要确认一下选择器层级。

不过这个看上去是老问题,最近几次同步样式都没有改动 input 组件的选择器。

React

<span class="ant-input-group-wrapper">
  <span class="ant-input-wrapper ant-input-group">
    <span class="ant-input-affix-wrapper">
      <span class="ant-input-prefix">
        <i class="anticon anticon-user"></i>
      </span>
      <input type="text" class="ant-input"></span>
    <span class="ant-input-group-addon">.com</span>
  </span>
</span>

Zorro

<nz-input-group class="ant-input-affix-wrapper ant-input-group-wrapper">
  <span class="ant-input-wrapper ant-input-group">
    <span class="ant-input-group-addon">.com</span>
  </span>
  <span class="ant-input-prefix">
    <i class="anticon anticon-user"></i>
  </span>
  <input type="text" class="ant-input ng-star-inserted">
</nz-input-group>

@HDNRAY
Copy link

HDNRAY commented Jun 10, 2019

问题依旧存在 7.5.0版本

hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants