Skip to content

Commit

Permalink
[docs] Improve fullWidth wording (#8610)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Oct 9, 2017
1 parent 0b61977 commit d9c6fd5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pages/api/form-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This context is used by the following components:
| component | ElementType | 'div' | The component used for the root node. Either a string to use a DOM element or a component. |
| disabled | boolean | false | If `true`, the label, input and helper text should be displayed in a disabled state. |
| error | boolean | false | If `true`, the label should be displayed in an error state. |
| fullWidth | boolean | false | If `true`, the label will take up the full width of its container. |
| fullWidth | boolean | false | If `true`, the component, as well as its children, will take up the full width of its container. |
| margin | union:&nbsp;'none'<br>&nbsp;'dense'<br>&nbsp;'normal'<br> | 'none' | If `dense` or `normal`, will adjust vertical spacing of this and contained components. |
| required | boolean | false | If `true`, the label will indicate that the input is required. |

Expand Down
2 changes: 1 addition & 1 deletion pages/api/tabs.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Notice that this Component is incompatible with server side rendering.
| centered | boolean | false | If `true`, the tabs will be centered. This property is intended for large views. |
| children | Node | | The content of the component. |
| classes | Object | | Useful to extend the style applied to components. |
| fullWidth | boolean | false | If `true`, the tabs will grow to use all the available space. This property is intended for small views. |
| fullWidth | boolean | false | If `true`, the tabs will grow to use all the available space. This property is intended for small views, like on mobile. |
| indicatorClassName | string | | The CSS class name of the indicator element. |
| indicatorColor | union:&nbsp;'accent'<br>&nbsp;'primary'<br>&nbsp;string<br> | 'accent' | Determines the color of the indicator. |
| <span style="color: #31a148">onChange *</span> | Function | | Callback fired when the value changes.<br><br>**Signature:**<br>`function(event: object, value: number) => void`<br>*event:* The event source of the callback<br>*value:* We default to the index of the child |
Expand Down
3 changes: 2 additions & 1 deletion src/Form/FormControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ export type Props = {
*/
error?: boolean,
/**
* If `true`, the label will take up the full width of its container.
* If `true`, the component, as well as its children,
* will take up the full width of its container.
*/
fullWidth?: boolean,
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Tabs/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export type Props = {
className?: string,
/**
* If `true`, the tabs will grow to use all the available space.
* This property is intended for small views.
* This property is intended for small views, like on mobile.
*/
fullWidth?: boolean,
/**
Expand Down

0 comments on commit d9c6fd5

Please sign in to comment.