Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncating/shrinking datetime-local input can obscure picker button #9301

Open
2 of 6 tasks
nwhittaker opened this issue May 9, 2024 · 0 comments
Open
2 of 6 tasks
Labels
0 - new New issues that need assignment. ArcGIS Field Apps Issues logged by ArcGIS Field Apps team members. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. calcite-components Issues specific to the @esri/calcite-components package. estimate - 2 Small fix or update, may require updates to tests. impact - p2 - want for an upcoming milestone User set priority impact status of p2 - want for an upcoming milestone needs milestone Planning workflow - pending milestone assignment, has priority and/or estimate. p - low Issue is non core or affecting less that 10% of people using the library

Comments

@nwhittaker
Copy link
Contributor

nwhittaker commented May 9, 2024

Check existing issues

Actual Behavior

Given a datetime-local input inside a fixed-width component, if the width of the input exceeds the width of the container, the trailing end of the input overflows and can become clipped.

Screenshot 2024-05-09 at 6 11 51 PM

Expected Behavior

Instead, the input's width should match its container's, its trailing-edge calendar button should remain visible, and its value should become clipped similar to how the native input works:

Screenshot 2024-05-09 at 6 26 57 PM

Reproduction Sample

https://codepen.io/nwhittaker-esri/pen/dyEyZKP

Reproduction Steps

  1. Visit the code sample and resize the panel.
  2. Observe how the native input truncates the value while the Calcite input is clipped.

Reproduction Version

2.8.0

Relevant Info

Possibly something to also take into account with #7074 and/or #9053.

Regression?

No response

Priority impact

p3 - want for upcoming milestone

Impact

Field Maps presents forms in side-panels. This issue presents a degraded UX and/or requires us to maintain a hard-coded minimum panel-width

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-angular
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/eslint-plugin-calcite-components

Esri team

ArcGIS Field Apps

@nwhittaker nwhittaker added bug Bug reports for broken functionality. Issues should include a reproduction of the bug. 0 - new New issues that need assignment. needs triage Planning workflow - pending design/dev review. labels May 9, 2024
@github-actions github-actions bot added ArcGIS Field Apps Issues logged by ArcGIS Field Apps team members. p3 - want for upcoming milestone calcite-components Issues specific to the @esri/calcite-components package. labels May 9, 2024
@nwhittaker nwhittaker changed the title Truncating datetime-local input can obscure picker button Truncating/shrinking datetime-local input can obscure picker button May 9, 2024
@geospatialem geospatialem added impact - p2 - want for an upcoming milestone User set priority impact status of p2 - want for an upcoming milestone and removed p3 - want for upcoming milestone labels May 21, 2024
@geospatialem geospatialem added p - low Issue is non core or affecting less that 10% of people using the library estimate - 2 Small fix or update, may require updates to tests. needs milestone Planning workflow - pending milestone assignment, has priority and/or estimate. and removed needs triage Planning workflow - pending design/dev review. labels May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - new New issues that need assignment. ArcGIS Field Apps Issues logged by ArcGIS Field Apps team members. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. calcite-components Issues specific to the @esri/calcite-components package. estimate - 2 Small fix or update, may require updates to tests. impact - p2 - want for an upcoming milestone User set priority impact status of p2 - want for an upcoming milestone needs milestone Planning workflow - pending milestone assignment, has priority and/or estimate. p - low Issue is non core or affecting less that 10% of people using the library
Projects
None yet
Development

No branches or pull requests

2 participants