Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Improve fullWidth wording #8610

Merged
merged 1 commit into from
Oct 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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