fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

SearchBox component not rendering properly

Open rbtkoz opened this issue 10 years ago • 3 comments

import { SearchBox } from 'office-ui-fabric-react/lib/SearchBox'
...
<div>
<SearchBox/>
</div>
...
screen shot 2016-09-28 at 3 48 41 pm screen shot 2016-09-28 at 3 48 48 pm

rbtkoz avatar Sep 28 '16 19:09 rbtkoz

Does your html tag have a dir="ltr" attribute? I believe this may be because this is missing. Some of the styling is right-to-left sensitive and the css rules require the DIR attribute to be specified.

If you wrap your app content in the "Fabric" component, it will address this for you. It will also show/hide keyboard focus rect styling when the user interacts with the keyboard navigation keys.

dzearing avatar Sep 28 '16 20:09 dzearing

Thanks that works. Would be great if that were in the documentation ;) Also a requirement is to link the fabric.css file otherwise none of the icons render.

rbtkoz avatar Sep 29 '16 16:09 rbtkoz

Cool. Thanks for letting us know.

Covered both issues here: https://github.com/OfficeDev/office-ui-fabric-react/issues/351

dzearing avatar Sep 29 '16 18:09 dzearing