EuiFilePicker dropzone style updates#6479
Conversation
Co-authored-by: Cee <constancecchen@users.noreply.github.com>
Co-authored-by: Cee <constancecchen@users.noreply.github.com>
|
Two notes separate from the code changes:
and
|
|
@constancecchen - Title updated (I'm trying to do too many things at once)... And yes, I'll be updating Figma. |
Co-authored-by: Cee <constancecchen@users.noreply.github.com>
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6479/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6479/ |
|
@constancecchen compressed, invalid, and disabled styles updated. |
|
The invalid styles kinda bug me, but they match our patterns elsewhere 🤷🏼♂️ |
Co-authored-by: Cee <constancecchen@users.noreply.github.com>
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6479/ |
|
@constancecchen so I addressed the focus state in Chrome and Firefox, but focus doesn't appear to render at all in Safari. However, that's also the case in the production site. Are we cool with that? ... I'm becoming painfully aware of how out of touch I am with CSS right now. |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6479/ |
|
Safari does not show focus state on click on prod either, so you're fine. It does properly show focus state on keyboard tab, and I did check and that's displaying correctly - you should be all good. |
|
eui/src/components/form/file_picker/_file_picker.scss Lines 80 to 84 in 41ec84f This EDIT: I would remove the AFAICT there's no background gradient on focus, this must be referring to some old styles that no longer exists - we should just remove the comment entirely. So TL;DR of changes I'm asking for (plus removing line 67): |
Co-authored-by: Cee <constancecchen@users.noreply.github.com>
Co-authored-by: Cee <constancecchen@users.noreply.github.com>
|
Changes look good! Will wait for staging to deploy in 30 mins or so and do another quick cross-browser QA pass, and (fingers crossed) if nothing comes up, I think this PR is good to go! |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6479/ |
|
As a heads up, I did find one extremely minor bug that transitions don't work on However, this is coming from our form mixins which is coming in from our compressed mixin: eui/src/global_styling/mixins/_form.scss Lines 165 to 168 in 0d31625 So I don't think this is worth solving in this PR - we should address form mixin shenanigans generally in our Emotion conversion instead. |
cee-chen
left a comment
There was a problem hiding this comment.
🎉 Thanks for your patience - I love the new look. Let's ship it!
## Summary `eui@71.0.0` ⏩ `eui@72.0.0` --- ## [`72.0.0`](https://github.com/elastic/eui/tree/v72.0.0) - Added the `customQuickSelectRender` render prop to `EuiSuperDatePicker`, which allows customizing the Quick Select popover ([#6382](elastic/eui#6382)) - `EuiFilePicker` styles have been updated to look more like an interactive element. ([#6479](elastic/eui#6479)) - Added a third argument to `EuiSelectable`'s `onChange` callback. The single `option` object that triggered the `onChange` event is now also passed to consumers with its most recent `checked` state ([#6487](elastic/eui#6487)) **Bug fixes** - `EuiTabs` now passes `size` and `expand` to all children using a React context provider. ([#6478](elastic/eui#6478)) - Fixed security warnings caused by `trim@0.0.1` sub-dependency ([#6482](elastic/eui#6482)) **Breaking changes** - Removed `size` and `expand` props from `EuiTab` ([#6478](elastic/eui#6478)) ## [`71.1.0`](https://github.com/elastic/eui/tree/v71.1.0) **Deprecations** - Renamed `EuiPageSideBarProps` to `EuiPageSideBarProps_Deprecated`, to reduce usage/confusion with `EuiPageSidebar` ([#6468](elastic/eui#6468)) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>








Summary
This PR updates
EuiFilePickerdropzone styles to look more like an interactive element. Text contrast is boosted in the compact variant of the component and it no longer looks like a disabled button or inactive input.QA
Remove or strikethrough items that do not apply to your PR.
General checklist
Props have proper autodocs and playground togglesAdded documentation