fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Disabled command button still shows hand cursor when user hovers over it

Open junchen1 opened this issue 10 years ago • 4 comments

I'm using react fabric version 56.0.

junchen1 avatar Oct 06 '16 18:10 junchen1

I don't repro this.

Can you trace down the css style causing the issue you're seeing and make a PR?

dzearing avatar Oct 06 '16 23:10 dzearing

Please login you ms account using:https://outlook-sdf.office.com/owamail/?branch=junchen2016-junchen-react3

Find an email with two attachments & see the label button under two attachments

junchen1 avatar Oct 06 '16 23:10 junchen1

So i used chrome, inspected it, and it seems there is this rule somewhere:

button {
  background: transparent;
  cursor: pointer!important;
}

This is defined in https://.../junchen2016-junchen-react3/resources/styles/style.min.css

I see only 1 single "!important" in all the fabric-react css in MessageBar. (And that should be removed!)

I suspect this is somewhere in the product code. Can you search for "!important"?

dzearing avatar Oct 06 '16 23:10 dzearing

Thanks a lot for catching it! Yep, it is caused by a wrong global css. I'll remove it.

junchen1 avatar Oct 10 '16 21:10 junchen1