fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

The Fabric component should be well documented.

Open dzearing opened this issue 10 years ago • 4 comments

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>
);

dzearing avatar Sep 28 '16 20:09 dzearing

Additionally, none of the icons will work out of the box, without either:

  1. Including fabric.css
  2. Using the sass import and bundling fabric with it.

These also need documentation!

dzearing avatar Sep 29 '16 18:09 dzearing

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 avatar Sep 29 '16 19:09 mikewheaton

@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.

dzearing avatar Oct 24 '16 23:10 dzearing

Closing.

gokunymbus avatar Jan 11 '18 19:01 gokunymbus