fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Dialog close button shadow

Open ankitk94 opened this issue 9 years ago • 9 comments

Bug Report

fabric version : 0.87.1

Describe the issue:

For dialog component, close button shadow is seen when button is hovered. Is there any workaround for this? One way is to provide styling to save button, but currently no way to provide the styling.

ankitk94 avatar Jan 30 '17 16:01 ankitk94

Which browser are you using? Could you include a screenshot? I'm not seeing a shadow when I hover on the example on the Dialog page.

mikewheaton avatar Jan 30 '17 17:01 mikewheaton

image

When I hover on the close button, button shadow appears. I am using chrome, but same issue is appearing on firefox also.

ankitk94 avatar Jan 30 '17 17:01 ankitk94

This is a focus treatment for close button as X button is the default focusable element on dialog open.

mdahamiwal avatar Jan 31 '17 06:01 mdahamiwal

If by default another element is focused, then also when I hover on "close" button, shadow is seen. The requirement is to remove the button shadow on hover (or focus via keyboard).

ankitk94 avatar Jan 31 '17 06:01 ankitk94

It seems the close button is not an IconButton and therefore isn't getting the correct focus treatment.

The correct treatment is that the focus rectangle shows up only when the user interacts with the keyboard.

We have the <Fabric> component which abstracts adding the right root classes to enable focus rectangles. The focus mixin prefixes selectors with the .ms-Fabric-isFocusVisible flag.

dzearing avatar Jan 31 '17 22:01 dzearing

@leddie24 dig in, let me know if you need help

dzearing avatar Feb 01 '17 17:02 dzearing

@ankitk94 are you using the dialog on a VSTS page? This looks very much like a local issue we have. Could you ping me at cschleid? I can help you resolve this.

@dzearing @leddie24 don't think this is a problem with OfficeFabric itself.

cschleiden avatar Feb 06 '17 22:02 cschleiden

Yes, I am using it on VSTS page. Sure will ping you up

ankitk94 avatar Feb 07 '17 05:02 ankitk94

Adding class "bowtie-fabric" fixed the issue of button shadow in dialog, but created another issue.

It is forcing other non-fabric components to behave like fabric:

image

The blue background appearing on hover is undesirable. Moreover, it affected the styling for all components which were used from VSSF.

ankitk94 avatar Feb 10 '17 05:02 ankitk94