nhn / tui.calendar

🍞📅A JavaScript calendar that has everything you need.
http://ui.toast.com/tui-calendar
MIT License
11.88k stars 1.28k forks source link

CSS not same as documentation #1359

Closed Arjun31415 closed 1 year ago

Arjun31415 commented 1 year ago

Version

    "@toast-ui/react-calendar": "^2.1.3",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "tui-date-picker": "^4.3.3",
    "tui-time-picker": "^2.1.6"

Test Environment

React project Brave Browser Arch Linux

Current Behavior

image

App.tsx-

import Calendar from "@toast-ui/react-calendar";

import "tui-date-picker/dist/tui-date-picker.min.css";
import "tui-time-picker/dist/tui-time-picker.min.css";
import "@toast-ui/calendar/dist/toastui-calendar.min.css";

function App(){
  const calendarRef = useRef<Calendar | null>(null);

return (
    <div>
        <Calendar
          ref={calendarRef}
          usageStatistics={false}
          isReadOnly={false}
          useFormPopup={true}
          useDetailPopup={true}
          view="week"
        />
      </div>
   );
}
export  default App;

Expected Behavior

The css style to be as show in documentation

image

Notice the weird rounded corners in the input fields and the selection fields

Arjun31415 commented 1 year ago

Sry, Fixed by correctly ordering the imported css