-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
Problem/Feature
For some reason, autocomplete inputs and suggestion lists are hard-coded to 92%, even though the pattern library gives a .form-control 50% width.
https://github.com/hmrc/assets-frontend/blob/master/assets/scss/components/_auto-complete.scss#L45
That has knock on consequences for the clear button which is then set to a very specific 9.4% right offset.
Expected behaviour
They should be consistent with the other inputs in the pattern library
Proposed solution
2 solutions
- Inherit the same width as .form-control
- Set width to 100% and allow the consumer to configure the width via the parent container
Explain the steps to reproduce the bug
- Decorate a .form-control with the autocomplete component
- Observe that it is now 92% of the main column, whilst all other inputs are 50%.
Tell us about your environment
- Version used: 2.240.0
- Browser Name and version: All browsers
- Operating System and version (desktop or mobile): OSX desktop
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels