[FilePicker] Update icon type from 'importAction' to 'export'#9351
Conversation
|
👋 Since this is a community submitted pull request, a Buildkite build has not been started automatically. Would an Elastic organization member please verify the contents of this pull request and kick off a build manually? |
…ter upload indication
0a20e86 to
82b8249
Compare
…-pandey/eui into fix/9013-file-picker-icon
|
buildkite test this |
|
@JoseLuisGJ can you verify this is the expected glyph?
|
packages/eui/src/components/form/file_picker/__snapshots__/file_picker.test.tsx.snap
Outdated
Show resolved
Hide resolved
|
Whenever we make changes that affect how components look, we run visual regression tests. This requires Docker and Storybook running, and this command: |
I wasn’t aware of this before. |
|
buildkite test this |
💚 Build SucceededHistory
|
💚 Build Succeeded
History
|
weronikaolejniczak
left a comment
There was a problem hiding this comment.
Thank you for contributing, @ragini-pandey 🙏🏻 It's a great PR, looking forward to seeing more!
## Dependency updates - `@elastic/eui`: v112.2.0 ⏩ v112.3.0 - `@elastic/eslint-plugin-eui`: v2.7.0 ⏩ v2.8.0 --- ## Package updates ### `@elastic/eui` [v112.3.0](https://github.com/elastic/eui/releases/tag/v112.3.0) - Added new `server` icon. ([#9355](elastic/eui#9355)) - Added `className` support to `EuiMarkdownEditor`'s `toolbarProps` for custom toolbar styling ([#9349](elastic/eui#9349)) - Updated `EuiFilePicker` to use the `upload` icon to better indicate uploads. ([#9351](elastic/eui#9351)) - Exported the flyout system store singleton and added an event observer for emitting close session events ([#9347](elastic/eui#9347)) - Updated `EuiIcon` to use standard dynamic imports for icon assets, enabling native support for modern bundlers (Rollup, Parcel) and improving initial load performance ([#9342](elastic/eui#9342)) **Bug fixes** - Fixed a potential crash in the flyout system: due to asynchronous state updates and React's batching behavior, it was possible to experience a crash when closing a managed flyout. ([#9356](elastic/eui#9356)) ### `@elastic/eslint-plugin-eui` v2.8.0 - Added new `icon-accessibility-rules` rule. ([#9357](elastic/eui#9357)) - Added new `badge-accessibility-rules` rule. ([#9354](elastic/eui#9354))


Summary
Changed the default icon for
EuiFilePickerfromimportActiontoexport. Theexporticon features an upward-pointing arrow which better represents the "upload" action that the file picker performs.Files changed:
packages/eui/src/components/form/file_picker/file_picker.tsx- Updated icon type fromimportActiontoexportpackages/eui/src/components/form/file_picker/__snapshots__/file_picker.test.tsx.snap- Updated snapshot to reflect the icon changepackages/eui/changelogs/upcoming/9013.md- Added changelog entryWhy are we making this change?
Closes #9013
The previous
importActionicon (arrow pointing down) was misleading for a file upload component. As discussed in elastic/kibana#232845, the conventional usage of these icons is:Since
EuiFilePickeris used to upload files into the system, theexporticon (arrow pointing up) is the correct choice.Screenshots
Impact to users
QA
General checklist
Added documentation- N/A (no new props or API changes)Props have proper autodocs- N/AChecked Code Sandbox works for any docs examples- N/AUpdated visual regression tests- N/A (icon change is intentional)If applicable, added the breaking change issue label- N/A (not a breaking change)If the changes unblock an issue in a different repo, smoke tested carefully