The Fabric component should be well documented.
We should have documentation for the Fabric component which will:
- Ensure DIR attribute is populated
- Add ms-Fabric-isFocusVisible classname
We should make is super clear to the user that it is a requirement that they use the Fabric wrapper, or that at minimum they have DIR populated, because otherwise components will look broken when they first try it.
const App = () => (
<Fabric>
{ children }
</Fabric>
);
Additionally, none of the icons will work out of the box, without either:
- Including fabric.css
- Using the sass import and bundling fabric with it.
These also need documentation!
I thought we already included fabric.css, so that all of the Fabric Core classes are available on a page using Fabric React. Or are we just importing it to reference variables and mixins with no output classes?
@mikewheaton If you import the Dropdown, which references an animation class like ms-animateDown60 or whatever, that is not defined unless you add the fabric css or you import the sass definition.
Closing.