forked from elastic/eui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EuiButton] Fix multiple issues around internal EuiButtonDisplay comp…
…onents (elastic#6332) * Fix text wrapper not being used for EuiI18n 'text' that pass textProps * Fix unnecessary textProps spread causing false positive for undefined/empty objs * Fix minWidth inline style not applying for 0px + use logical property * [opinionated] iconSide change: prefer DOM order over CSS order - more accessible to rtl * [cleanup] remove unnecessary/unused CSS - flex shrink is already set by EuiLoadingSpinner and EuiIcon respectively and does not need to be repeated - size CSS isn't doing anything and isn't worth keeping * Write more unit tests for EuiButtonDisplayContent * Fix EuiLoadingSpinner to not pass wildcard color values into Emotion - we should be using inline styles for non-enum props to avoid generating n/infinite Emotion classNames + add unit test for EuiButtonDisplayContent & remove unnecessary typing * write more/missing unit tests for logic within internal EuiButtonDisplay * changelog
- Loading branch information
Showing
13 changed files
with
366 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
src/components/button/button_display/__snapshots__/_button_display_content.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.