AlaskaAirlines / auro-select

Combo custom element containing pre-defined trigger options with menu in the dropdown panel
https://auro.alaskaair.com/components/auro/select
Apache License 2.0
2 stars 0 forks source link

auro-select: Dropdown list too narrow and expanding to full screen #216

Closed dPopeAlaskaAir closed 2 weeks ago

dPopeAlaskaAir commented 3 weeks ago

Describe the bug

Select component has a couple of issues when it comes to laying out the options for the dropdown

To Reproduce

Steps to reproduce the behavior:

Code example:

<auro-select
    aria-label="Phone Code"
    class="xs:tw-col-span-2 sm:tw-col-span-3 md:tw-col-span-2 lg:tw-col-span-2"
    value="1"
>
    <span slot="label">Code</span>
    <auro-menu>
        <auro-menuoption value="1">United States/Canada (+1)</auro-menuoption>
        <auro-menuoption value="506">Costa Rica (+506)</auro-menuoption>
        <auro-menuoption value="52">Mexico (+52)</auro-menuoption>
        <auro-menuoption value="93">Afghanistan (+93)</auro-menuoption>
        <auro-menuoption value="355">Albania (+355)</auro-menuoption>

Expected behavior

Screenshots

image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

Patrick-Daly-AA commented 3 weeks ago

I think we have parameters you can configure to address these issues. We'll have an engineer reach out to you @dPopeAlaskaAir to talk