Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

md-datepicker panel doesn't inherit dark theme #11200

Closed
rudzikdawid opened this issue Mar 29, 2018 · 0 comments
Closed

md-datepicker panel doesn't inherit dark theme #11200

rudzikdawid opened this issue Mar 29, 2018 · 0 comments
Assignees
Labels
has: Pull Request A PR has been created to address this issue P4: minor Minor issues. May not be fixed without community contributions. resolution: fixed type: bug ui: theme
Milestone

Comments

@rudzikdawid
Copy link
Contributor

example of issue: https://codepen.io/anon/pen/mxxday?editors=1010

in material1 implementation there is render issue. light calendar panel in dark theme.
material2 has proper implementation dark calendar panel in dark theme.
https://material.angular.io/components/datepicker/overview

In official styleguide we can find dark calendar in dark theme.
https://material.io/guidelines/components/pickers.html#pickers-date-pickers
dark theme datepicker

fixed styles

calendar-theme.scss:

.md-calendar.md-THEME_NAME-theme {
  background: '{{background-hue-1}}';
  color: '{{foreground-1}}';
}

.md-THEME_NAME-theme {

  .md-calendar-day-header {
    background: '{{background-hue-1}}';
    color: '{{foreground-1}}';
  }

 .md-calendar-date-selection-indicator {
    .md-calendar-date.md-focus &,
    &:hover {
      background: '{{background-300-0.2}}';
    }
  }

}

datePicker-theme.scss:

.md-datepicker-calendar {
  background: '{{background-hue-1}}';
}
@Splaktar Splaktar added this to the 1.1.9 milestone Mar 30, 2018
@Splaktar Splaktar self-assigned this Mar 30, 2018
@Splaktar Splaktar added type: bug ui: theme P4: minor Minor issues. May not be fixed without community contributions. for: external contributor has: Pull Request A PR has been created to address this issue labels Mar 30, 2018
rudzikdawid added a commit to rudzikdawid/material that referenced this issue Mar 30, 2018
rudzikdawid added a commit to rudzikdawid/material that referenced this issue Apr 5, 2018
rudzikdawid added a commit to rudzikdawid/material that referenced this issue Apr 8, 2018
rudzikdawid added a commit to rudzikdawid/material that referenced this issue Apr 9, 2018
chmelevskij pushed a commit to chmelevskij/material that referenced this issue Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
has: Pull Request A PR has been created to address this issue P4: minor Minor issues. May not be fixed without community contributions. resolution: fixed type: bug ui: theme
Projects
None yet
Development

No branches or pull requests

2 participants