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

[Component] [input, button] Button 点击以后还是hover的样式, Input clearable 在鼠标hover时长短会变化 #9168

Closed
DexYang opened this issue Aug 2, 2022 · 9 comments

Comments

@DexYang
Copy link

DexYang commented Aug 2, 2022

Bug Type: Component

Environment

  • Vue Version: 3.2.37
  • Element Plus Version: 2.2.12
  • Browser / OS: UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36 Edg/103.0.1264.77
  • Build Tool: Vite

Reproduction

Related Component

  • el-input
  • el-button

Reproduction Link

Element Plus Playground

Steps to reproduce

button鼠标点击后,仍然是hover的浅色样式

input放到el-form-item中,鼠标进入和退出input的区域,input的宽度会变化

What is Expected?

button鼠标点击后,鼠标离开后,变回正常的颜色

input宽度不变

What is actually happening?

button鼠标点击后,鼠标离开后,仍然是hover的颜色

input宽度变化

Additional comments

(empty)

@rrge
Copy link

rrge commented Aug 3, 2022

我也同样遇到这个问题了,input放到el-form-item中,鼠标进入和退出input的区域,input的宽度会变化,在组件样式加上width值,可以临时解决这个问题

@DexYang
Copy link
Author

DexYang commented Aug 6, 2022

没人管管这个吗。。

@kingwrcy
Copy link

kingwrcy commented Aug 8, 2022

倒退了3个版本还有这个问题,服了,只能去掉clearable了

@tolking
Copy link
Member

tolking commented Aug 18, 2022

Button 点击后标准就是hover状态,于是就显示 hover 状态样式。不喜欢可以自己修改

Input 参考 #7287

提问前可以搜索相关 issues,避免重复

@tolking tolking closed this as completed Aug 18, 2022
@DexYang
Copy link
Author

DexYang commented Aug 18, 2022

Button 点击后标准就是hover状态?不是吧,据我观察github就不是这样的

@tolking
Copy link
Member

tolking commented Aug 18, 2022

应该是 focus 状态,我说错了 Demo

@DexYang
Copy link
Author

DexYang commented Aug 24, 2022

Button 点击后标准就是hover状态,于是就显示 hover 状态样式。不喜欢可以自己修改

Input 参考 #7287

提问前可以搜索相关 issues,避免重复

请问这个Button 点击后的样式应该如何修改

@tolking
Copy link
Member

tolking commented Aug 24, 2022

自己改 .el-button:focus 的相关样式

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

@github-actions github-actions bot locked and limited conversation to collaborators Sep 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants