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

styling from semantic-ui-react not being applied on inline DateInput #192

Open
GWSzeto opened this issue Jan 16, 2020 · 1 comment
Open

Comments

@GWSzeto
Copy link

GWSzeto commented Jan 16, 2020

Describe the bug
The styling from semantic-ui-react is not being applied on the inline version of DateInput

To Reproduce
npm i semantic-ui-calendar-react
npm i semantic-ui-react
implement the inline dateinput as so

const scheduleAppointment = ({ goToPage, updateUserData }) => {
  const initialValues = {
    appointmentDateTime: '',
  }

  const onSubmit = (values, actions) => {
    actions.setSubmitting(false)
    updateUserData(values)
    goToPage(1)
  }
  
  return (
    <Formik
      initialValues={initialValues}
      onSubmit={onSubmit}
    >
      {({ values, handleChange }) => (
        <Form>
          <TitleQuestion>Your availability</TitleQuestion>
          <DateInput
            inline
            name='appointmentDateTime'
            value={values.appointmentDateTime}
            onChange={handleChange}
          />
        </Form> 
      )}
    </Formik> 
  )
}

Expected behavior
I expected it to look like the inline calendar displayed in the demo here
https://arfedulov.github.io/semantic-ui-calendar-react/

Screenshots
expected:
Screenshot from 2020-01-16 14-44-58

reality:
Screenshot from 2020-01-16 14-46-59

Dependencies versions
"react": "^16.12.0"
"semantic-ui-calendar-react": "^0.15.3"
"semantic-ui-react": "^0.88.2"

@DovahBrownies
Copy link
Contributor

@GWSzeto - Are you importing the semantic styling?
import 'semantic-ui-css/semantic.min.css' ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants