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.
[Emotion] Convert EuiFlexGroup, EuiFlexItem, and EuiFlexGrid (elastic…
…#6270) * Convert EuiFlexGroup to Emotion + convert gutter CSS to `gap` + remove className maps + clean up unnecessary `...rest` cast + convert nested EuiFlexItem to flattened styles within flex item styles - realistically, who's going to be using EuiFlexItem outside of EuiFlexGroup? * Convert EuiFlexItem responsive CSS and remove responsive styling for column directions - Due to switch to `gap`, no need for margin overrides anymore - the gap will be calculated automatically - Due to flatter Emotion classes, no need for !important anymore (which is probably extremely annoying to override) - see elastic#5529 for column directions decision * Convert EuiFlexItem to Emotion + support grow={0} - separate out `grow` logic via JS to reduce CSS overrides - explicitly print grow-1 class if grow is a generic `true` + improve props table + remove `@ts-ignore` by switching type to ElementType + add missing `component` prop unit test * Update all downstream snapshots * Changelog * [EuiFlexGrid] Remove `columns={0}` as an option + improve props docs * [Docs] convert remaining .js examples to .tsx * [PR feedback][docs] Remove negative margin callout * changelog for elastic#4140 bugfix * [PR feedback] Add responsive flex grid example + move responsive flex group example up above grid examples * [Docs] Misc code cleanup - combine src/components imports - remove unnecessary div wrappers * [Docs] Remove _flex.scss in favor of an Emotion wrapper * [Docs] move responsive flex grid example to better match flow of page * Fix playgrounds to accept custom Emotion CSS / fix flex playgrounds - I probably should not have tried to tackle removing doc example Sass in this PR, sorry Elizabet 🙈
- Loading branch information
Constance
authored
Sep 30, 2022
1 parent
9d75128
commit cd59d7b
Showing
60 changed files
with
959 additions
and
884 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
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 was deleted.
Oops, something went wrong.
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
File renamed without changes.
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.