myxvisual / react-uwp

📱⌨ React Components that Implement Microsoft's UWP Design & Fluent Design.
https://react-uwp.com
MIT License
1.18k stars 78 forks source link

titleWrapperStyle / Modal Form with Inputs #53

Open aboe026 opened 6 years ago

aboe026 commented 6 years ago

Problem description

I'm trying to create a modal with form inputs like so: image I'm using the ContentDialog currently:

<ContentDialog
  className='dialog'
  defaultShow={visible}
  statusBarTitle={'Add Visit'}
  showCloseButton={true}
  primaryButtonText={'Add'}
  secondaryButtonText={'Close'}
  contentNode={
    <div>
      <div>
        <span>Country</span>
        <TextBox />
      </div>
      <div>
        <span>State</span>
        <TextBox />
      </div>
      <div>
        <span>City</span>
        <TextBox />
      </div>
      <div>
        <span>Start</span>
        <CalendarDatePicker />
      </div>
      <div>
        <span>End</span>
        <CalendarDatePicker />
      </div>
    </div>
  }
/>

but that leaves a massive gap where the title property should go. Am I using the correct component? If so, could i get titleWrapperStyle exposed as a property on ContentDialog so i can set display: none; on it.

Link to minimal working code that reproduces the issue

see above

Versions