-
Notifications
You must be signed in to change notification settings - Fork 99
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
feat(Select,List): graceful replacement list item view of the List #1540
base: main
Are you sure you want to change the base?
feat(Select,List): graceful replacement list item view of the List #1540
Conversation
Preview is ready. |
Playwright Test Component is ready. |
b15fd59
to
ee7dcfb
Compare
@@ -53,7 +63,13 @@ export type ListItemProps<T> = { | |||
itemIndex: number; | |||
active: boolean; | |||
selected: boolean; | |||
// TODO: написать soft миграцию | |||
newListView?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicated prop
@@ -26,6 +27,8 @@ type SelectListProps = { | |||
virtualized?: boolean; | |||
loading?: boolean; | |||
onLoadMore?: () => void; | |||
// TODO: надпись про soft миграцию |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo
@@ -6,4 +6,25 @@ $block: '.#{variables.$ns}select-popup'; | |||
display: flex; | |||
flex-direction: column; | |||
max-height: 90vh; | |||
|
|||
&_newListView { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use kebab-case in css code
|
||
&_size_xl { | ||
border-radius: var(--g-list-container-border-radius, 10px); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be shorten to:
border-radius: var(--g-list-container-border-radius, --_--border-radius);
&_size_s {
--_--border-radius: 5px;
}
// &_size_m
@@ -85,6 +85,8 @@ export type SelectProps<T = any> = QAProps & | |||
width?: 'auto' | 'max' | number; | |||
popupWidth?: 'fit' | number; | |||
virtualizationThreshold?: number; | |||
// TODO: про soft миграцию |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo
@@ -29,6 +29,7 @@ export interface ThemeProviderProps extends React.PropsWithChildren<{}> { | |||
scoped?: boolean; | |||
rootClassName?: string; | |||
layout?: Omit<PrivateLayoutProviderProps, 'children'>; | |||
experiments?: {_newListView?: boolean}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why prefix names with underscore? If experiments
not prefixed neither should keys inside it
@@ -8,4 +8,8 @@ export interface ThemeContextProps { | |||
theme: Theme; | |||
themeValue: RealTheme; | |||
direction: Direction; | |||
/** | |||
* Ability to define soft migration for new list item view |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's clarify that the property is not for public usage
* Ability to define soft migration for new list item view | |
* DO NOT USE. Internally used for soft migration to the new list item view |
No description provided.