-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add props for shrink
and basis
for OuiFlexItem
#776
Comments
@joshuarrrr @BSFishy I would like to work on this issue |
I think I am almost done with this issue. However, I have some questions if you can help me with:
|
Snapshots are generated by the unit tests. So generally, we'll have a component file
Yes, the code you linked looks good to me.
For this one, I think accepting |
Thanks, @BSFishy. I will take a look at the testing to understand it better and pass all unit tests.
For this case @BSFishy, why should we have cases for export type FlexItemShrinkSize =
| 1
| 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
| 10
| true
| false
| null; Also, to just check my understanding of what we should accept for the export const BASIS_VALUES: FlexItemBasisValue[] = [
'auto',
'max-content',
'min-content',
'fit-content',
]; Thanks, Samuel |
Is your feature request related to a problem? Please describe.
OuiFlexItem
only supports thegrow
property, whileshrink
andbasis
are also important and useful properties. There are some cases where they are needed to achieve certain layouts.Describe the solution you'd like
Add
shrink
andbasis
properties forOuiFlexItem
. These should be similar togrow
but forflex-shrink
andflex-basis
.Describe alternatives you've considered
Using custom HTML is an option but is extremely not preferred.
Additional context
This gap was identified in OUI compliance audits:
console
plugin OpenSearch-Dashboards#3966expressions
plugin OpenSearch-Dashboards#4122vis_type_table
plugin OpenSearch-Dashboards#4162The text was updated successfully, but these errors were encountered: