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

Filepicker not working with fullWidth={true} #8060

Closed
tomitank opened this issue Oct 3, 2024 · 2 comments
Closed

Filepicker not working with fullWidth={true} #8060

tomitank opened this issue Oct 3, 2024 · 2 comments
Labels
answered Issues answered by the EUI team - auto-closes open issues in 7 days if no follow-up response bug

Comments

@tomitank
Copy link

tomitank commented Oct 3, 2024

hi,
https://eui.elastic.co/#/forms/form-controls#file-picker

can't open the file chooser window when has fullWidth={true} props.

@mgadewoll mgadewoll added bug ⚠️ needs validation For bugs that need confirmation as to whether they're reproducible and removed accessibility labels Oct 9, 2024
@mgadewoll mgadewoll self-assigned this Oct 9, 2024
@mgadewoll
Copy link
Contributor

mgadewoll commented Oct 9, 2024

Thanks for raising this @tomitank!

Based on your previous issue raised I assumed you encountered the issue on the same browser version and OS and sure enough I was able to reproduce it on Firefox 115 on Windows.

Note

The underlying issue: The input element is not stretched across the entire width of the container element. The applied styles of position: absolute and inset: 0 don't behave as expected in Firefox.

The issue is not limited to fullWidth=true.

fullWidth=true
Image

fullWidth=false
Image

ℹ I checked multiple Firefox versions and this issue is reproducible until 125.0.3, it's not reproducible from version 126 onwards. (at the time of writing the latest Firefox version is 131)

@mgadewoll mgadewoll removed the ⚠️ needs validation For bugs that need confirmation as to whether they're reproducible label Oct 9, 2024
@mgadewoll
Copy link
Contributor

mgadewoll commented Oct 10, 2024

ℹ We won't address this bug for older Firefox versions as EUI's and Kibana's browser support is explicit in targeting latest evergreen browser versions.

For users of EUI components with this issue it can be manually fixed by adding custom styles, e.g. like:

// CSS-in-JS via Emotion
<EuiFilePicker
   css={{
    '.euiFilePicker__input': {
      width: '100%',
    },
  }}
/>

// global CSS
.euiFilePicker__input {
  width: 100%;
}

@mgadewoll mgadewoll removed their assignment Oct 10, 2024
@cee-chen cee-chen added the answered Issues answered by the EUI team - auto-closes open issues in 7 days if no follow-up response label Oct 14, 2024
@cee-chen cee-chen closed this as not planned Won't fix, can't repro, duplicate, stale Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered Issues answered by the EUI team - auto-closes open issues in 7 days if no follow-up response bug
Projects
None yet
Development

No branches or pull requests

3 participants