question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v4 & Material Styling?

See original GitHub issue

Angular Version: ~10.0.14 Angular Material Version: ^10.1.3 ngx-daterangepicker-material: ^4.0.1

Code:

<mat-form-field>
<mat-label>Date Range</mat-label>
<input type="text" matInput
              class="form-control input"
              ngxDaterangepickerMd
              [locale]="{applyLabel: 'ok', format: 'YYYY-MM-DD'}"
              startKey="startDate"
              endKey="endDate"
              [ranges]="dateRanges"
              [(ngModel)]="selectedDateRange"
              [alwaysShowCalendars]="true"
              [showRangeLabelOnInput]="true"
              [showCustomRangeLabel]="true"
              name="daterange"/>
</mat-form-field>

Appearance: Screen Shot 2020-09-15 at 5 18 18 PM

Sorry if this is a silly issue. I may be misunderstanding what the library is stating will happen in an angular material project, but I don’t see it apply the material styling entirely?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

4reactions
manali-sankeycommented, Sep 21, 2020

I got same issue but you can change styling of date picker. I have changed css properties For given issue i have changed css of .md-drppicker.ltr classes so appearance of datepicker also get changed

0reactions
sidrafarooqcommented, Aug 20, 2021

I got same issue but you can change styling of date picker. I have changed css properties For given issue i have changed css of .md-drppicker.ltr classes so appearance of datepicker also get changed

@manali-sankey can you please tell me how you modify the css ? as i am not able to do so. I want to right align the ranges menu and change the styling as well. Using angular 8

You might need to use ng-deep to get access in your css file.

@blockerdude i was able to solve the issue by using ng-deep

Read more comments on GitHub >

github_iconTop Results From Across the Web

material-ui/styles
Material -UI aims to provide a strong foundation for building dynamic UIs. For the sake of simplicity, we expose the styling solution used...
Read more >
Difference between @mui/material/styles and @mui/styles?
Normally in v4, you'd import the style API from @material-ui/core/styles . This one uses JSS behind the scene:
Read more >
Styling with React's Material-UI v4 – Part 2 | I Read You Learn
Learn how to professionally handle Themes and apply them to Material-UI components, this is Part two of Styling with React's Material-UI.
Read more >
@material-ui/styles - npm
Material -UI Styles - The styling solution of Material-UI.. Latest version: 4.11.5, last published: 9 months ago.
Read more >
Material Design
Build beautiful, usable products faster. Material Design is an adaptable system—backed by open-source code—that helps teams build high quality digital ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found