Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

datepicker: inside md-list with class="md-2-line" #10262

Closed
Helvio88 opened this issue Jan 16, 2017 · 1 comment
Closed

datepicker: inside md-list with class="md-2-line" #10262

Helvio88 opened this issue Jan 16, 2017 · 1 comment
Assignees
Labels
resolution: works as expected The functionality works as designed and documented.

Comments

@Helvio88
Copy link

Actual Behavior:

  • What is the issue? * Having a md-datepicker with a md-input-container as a wrapper offsets the md-list-item-text texts
  • What is the expected behavior? the md-list-item-text texts should still be aligned with the avatar

CodePen (or steps to reproduce the issue): *

Angular Versions: *

  • Angular Version: 1.6.1
  • Angular Material Version: 1.1.1

Additional Information:

  • Browser Type: * Chrome
  • Browser Version: * 55
  • OS: * Windows 10
  • Stack Traces:

Shortcut to create a new CodePen Demo.
Note: * indicates required information. Without this information, your issue may be auto-closed.

Do not modify the titles or questions. Simply add your responses to the ends of the questions.
Add more lines if needed.

@Splaktar Splaktar changed the title md-datepicker inside md-list with class="md-2-line" datepicker: inside md-list with class="md-2-line" May 28, 2020
@Splaktar Splaktar self-assigned this May 28, 2020
@Splaktar Splaktar added the resolution: works as expected The functionality works as designed and documented. label May 28, 2020
@Splaktar
Copy link
Member

This caused by two factors

  • The calendar button is 40px height and 8px of top/bottom padding.
  • The .md-errors-spacer has a min-height: 24px

You can solve the first with md-hide-icons="calendar" and the second with

md-input-container .md-errors-spacer {
  min-height: 0;
}

Working example here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: works as expected The functionality works as designed and documented.
Projects
None yet
Development

No branches or pull requests

2 participants