Skip to content

Picker icons cause layout issues, show-icon enables too many options #66

@oliversalzburg

Description

@oliversalzburg

The show-icon attribute causes a calendar or clock icon to be displayed next to the input element. Clicking this icon opens the picker. This is very convenient and I'd really like to enable this for a certain use case I have.

However, this also adds a clear button to the input element, which can have unintended implications. In my case, I don't want the user to be able to remove the time value in the input. IMHO the picker icon and the clear icon should be configurable separately.

Additionally, when the picker is contained in an md-input-container, the label intersects with the picker icon, which originally lead me to try to prevent the element from being cleared by the user.

image

Additionally, there's a dtp-input CSS class being used in some places, which appears to add a margin on the left of the input element that seems like it's inteded for the above mentioned icons to fit in. However, if you don't apply the style and enable show-icon, the control still looks perfectly fine.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions