Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Metronic components-md.css breaking other CSS #2644


User avatar
0
bilalhaidar created

Hi, I am using ui-bootstrap datepicker.

When the calendar appear, its shape is deformed due to css overrides by component-md.css. Is there a way not to let components-md.css affect the css for the calendar?

See attachment pls

<div class="form-group form-md-line-input form-md-floating-label no-hint">
                            <input type="text" ng-click="opened=true;" class="form-control" name="DateofBirth"
                                   uib-datepicker-popup="{{format}}" ng-model="vm.dob" is-open="opened" datepicker-options="dateOptions"
                                   close-text="Close" />
                            <label>Date of Birth</label>
                        </div>
                        <div>
                            <span class="help-block text-danger" ng-show="pocf.DateofBirth.$invalid && pocf.DateofBirth.$dirty">@L("InvalidDate")</span>
                        </div>


11 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Did you added css for datepicker after metronic css files ? If so, I think we cannot do anything about this but you can override related css definitions and make it look better by yourself.

  • User Avatar
    0
    bilalhaidar created

    I didn't add anything, I kept things as is. I will check how the css is loading. Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Please let us know if you cannot solve this problem.

    Thanks.

  • User Avatar
    0
    bilalhaidar created

    Actually, the calendar I was using is the one that ships with UI Bootstrap.

    Are the css and js files for the UI bootstrap included by default in the application?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Yes you are right, I thought it was a different date picker. Are you using it as popup or embeded in your page ?

  • User Avatar
    0
    bilalhaidar created

    As popup. So, when I click the Calendar icon it opens.

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks,

    We will try and fix this.

  • User Avatar
    0
    bilalhaidar created

    Thanks for you.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Have you fixed this problem ?

    Thanks.

  • User Avatar
    0
    bilalhaidar created

    Never. I even tried to contact their support and they didn't help. I switched to kendo ui datepicker and working smooth.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks for your feedback :)