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

INPUT: Label placement issue with widths of 16% and below #76

Open
blackfalcon opened this issue Aug 13, 2024 · 6 comments
Open

INPUT: Label placement issue with widths of 16% and below #76

blackfalcon opened this issue Aug 13, 2024 · 6 comments

Comments

@blackfalcon
Copy link
Member

blackfalcon commented Aug 13, 2024

Please verify the version of auro-input you have installed

@latest

Please describe the bug

See screenshot taken from Auro doc site.

It appears that there is an issue where the label placement animation has issues when the width of the form input element is short in width, approx 16%.

Screenshot 2024-08-13 at 2 18 45 PM

What also can be noticed is that the error icons are not visible at widths less than 10%. See screenshot from app team that reported the issue. Also notice placement of label with datepicker labels. Undertermined if this is related to auro-input or specific to auro-datepicker.

Screenshot 2024-08-13 at 2 31 07 PM

To reproduce, use the following steps:

  1. Go to https://auro.alaskaair.com/components/auro/input/api
  2. Use any bordered example
  3. Reduce width of the input to approx 16% or less
  4. UI issue should present with both tab and click/tap

Reproducing the error on the docsite

This issue is reproducible on the Auro docsite

Expected behavior

The label placement should be consistent regardless of input width.

NOTE: It could also be considered that a min-width would be set by the Design System as to set a documented standard of width that the UIs will always perform as expected.

What browsers are you seeing the problem on?

Firefox, Chrome, Safari, Microsoft Edge

Additional context

The issue was communicated by the AirportCustomerExperience team. ID: 1087631

@blackfalcon blackfalcon added Type: Bug Bug or Bug fixes not-reviewed Issue has not been reviewed by Auro team members labels Aug 13, 2024
@Patrick-Daly-AA
Copy link

This looks very similar to an issue we are seeing with Datepicker: #139

Moving to investigate and see if these are a common root cause and come up with a holistic solution if that's the case

@jordanjones243
Copy link
Contributor

jordanjones243 commented Aug 15, 2024

@blackfalcon @Patrick-Daly-AA Currently, I am NOT able to reproduce the bug from the first screenshot both locally and on the docsite.

@blackfalcon
Copy link
Member Author

blackfalcon commented Aug 20, 2024

@jordanjones243 please see this CodePen to illustrate the issue https://codepen.io/blackfalcon/pen/zYVWKwP

Screenshot 2024-08-20 at 4 56 02 PM

@jordanjones243
Copy link
Contributor

I am now able to validate this issue. To replicate this issue, a user must TAB focus into the inputs to reproduce this error, rather than clicking inside the element.

@jordanjones243 jordanjones243 removed their assignment Sep 13, 2024
@jordanjones243 jordanjones243 removed the not-reviewed Issue has not been reviewed by Auro team members label Sep 25, 2024
@jason-capsule42 jason-capsule42 removed the Type: Bug Bug or Bug fixes label Oct 3, 2024
@sun-mota
Copy link
Contributor

sun-mota commented Nov 13, 2024

What's Happening

(ONLY on Chrome)
The input element is bigger than the wrapper and the wrapper's scroll position is changed when user focuses the input with tapping

Cause

This is due to the overflowing input size which makes chrome to reposition the scroll (where the cursor to be very left of the wrapper on onfocus with keyboard input

Solution

Make .wrapper .main input to not to exceed the width of wrapper

@jason-capsule42 jason-capsule42 changed the title Label placement issue with widths of 16% and below INPUT: Label placement issue with widths of 16% and below Dec 3, 2024
@jason-capsule42 jason-capsule42 transferred this issue from AlaskaAirlines/auro-input Dec 3, 2024
@jordanjones243 jordanjones243 self-assigned this Dec 27, 2024
@jordanjones243
Copy link
Contributor

Blocked until a conversation with the design team about the layout of input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants