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

[Input/FormHelperText] Dense margin fixes #7374

Merged
merged 5 commits into from Jul 7, 2017

Conversation

rosskevin
Copy link
Member

@rosskevin rosskevin commented Jul 7, 2017

Closes #7358 (additional bugs found from #7364)

  • bug - input padding-top
  • bug - dense FormHelperText margin
  • allow input override margin
  • flow FormHelperText

  • PR has tests / docs demo, and is linted.
  • Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
  • Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

@rosskevin rosskevin added design: material This is about Material Design, please involve a visual or UX designer in the process v1-alpha labels Jul 7, 2017
@@ -105,7 +105,7 @@ export const styleSheet = createStyleSheet('MuiInput', theme => {
},
},
inputDense: {
paddingTop: `${theme.spacing.unit / 2}px 0`,
paddingTop: `${theme.spacing.unit / 2}px`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

paddingTop: theme.spacing.unit / 2

* If `dense`, will adjust vertical spacing. This is normally obtained via context from
* FormControl.
*/
margin?: 'dense',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

none too?

Copy link
Member Author

@rosskevin rosskevin Jul 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we didn't implement none here, if anything, the default is normal spec. none is non-spec.

@rosskevin rosskevin merged commit 66507a7 into mui:v1-alpha Jul 7, 2017
@rosskevin rosskevin deleted the dense-margin-fixes branch July 7, 2017 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design: material This is about Material Design, please involve a visual or UX designer in the process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants