Expose css class properties on input element of search box.
We are hosting search box on top of panel. Our requirement is to move focus on search box when panel loads. The panel supports firstFocusableSelector props which expects a class name of a focusable element. However, we cannot use this property as search box does not allow you to give input class names.
firstFocusSelector is just a string that gets prepended with a period. So you can pass in a custom parent selector + the classname on the input.
https://codepen.io/micahgodbolt/pen/wqryaW
@micahgodbolt Is it ok to take dependency on "ms-SearchBox-field" on input (reference). I thought "ms-SearchBox-field" class name can be changed and it is not safe to take dependency on office fabric internal class names.
I don't think we could ever realistically get rid of those class names. The main thing we want to discourage is using class names to apply styles.
Closing since question has been answered, please reply if any issues remain