fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Set style for FocusZone focus outline?

Open gscottolson opened this issue 8 years ago • 4 comments

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? Yes

Describe the issue:

The FocusZone focus outline is thin, solid black border. Is there any way to enhance it?

If applicable, please provide a codepen repro:

You can see the behavior here: https://developer.microsoft.com/en-us/fabric#/components/focuszone

gscottolson avatar Feb 07 '18 23:02 gscottolson

I found the reference in the docs that pointed me to the associated SCSS mixin. Just wanted to update this issue in case others were looking for the same thing.

gscottolson avatar Feb 07 '18 23:02 gscottolson

Just to be clear, the FocusZone itself doesn't mandate any focus styling out of the box--as you point out that's handled by the focusBorder mixin for SCSS-based components. That said, what scenario are you trying to support? Generally, focus borders should be as consistent as possible within product families and should only be adjusted if absolutely needed (e.g. for accessibility or to stand out on backgrounds)

Jahnp avatar Feb 09 '18 00:02 Jahnp

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions to Fabric React!

stale[bot] avatar Apr 11 '18 04:04 stale[bot]

To expand on @Jahnp's comment, for components using the getStyles api there is a getFocus() function as well that takes a theme object as an argument, and returns focus border styles. Closing since this is answered.

jordandrako avatar Apr 30 '18 23:04 jordandrako