Skip to content

disabled button 中的 cursor: not-allowed 沒有作用 #950

@jimchen5209

Description

@jimchen5209

問題描述

發現在 .ts-button.is-disabled 的按鈕中,設定了 cursor: not-allowed; 屬性,但是滑鼠游標指上去時沒有正確顯示無法使用的符號

初步 debug 發現似乎是因為 pointer-events: none; 把這個事件吃掉了,導致游標沒有正確變過去,目前實測移除此屬性後游標有正確變過去,但是不確定會不會有什麼反效果

實測網站

https://v4.tocas-ui.com/zh-tw/button.html#disabled

預期結果

image

實際結果

image

其他資訊

類似 issue 參考: twbs/bootstrap#16088

測試過的瀏覽器:

  • Edge 119.0.2151.72
  • Chrome 119.0.6045.160
  • Firefox 120.0

Metadata

Metadata

Assignees

Labels

🎨 CSS與 CSS 和外觀設計上有關聯。🐛 已證實 Bug非常確定是個 Bug。

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions