-
Notifications
You must be signed in to change notification settings - Fork 137
feat: added landing docs for Disclosure component #2510
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
base: main
Are you sure you want to change the base?
Conversation
|
🎭 Component Tests Report is ready. |
61307ed to
543da49
Compare
| `left`: Стрелка расположена слева от заголовка (используется по умолчанию). | ||
|
|
||
| ### Свойства Disclosure.Details | ||
| `right`: Стрелка расположена справа от заголовка. |
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.
right and left props are deprecated. Let's not mention them in docs.
| | disabled | Отключенное состояние | `boolean` | `false` | | ||
| | defaultExpanded | Состояние раскрытия по умолчанию | `boolean` | `false` | | ||
| | expanded | Контролируемое состояние раскрытия | `boolean` | | | ||
| | arrowPosition | Положение контрола | `"start"` `"end"` `"left"` `"right"` | `"left"` | |
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.
please, fix the default - correct is start
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.
Turns out it has already been changed https://github.com/gravity-ui/uikit/blob/main/src/components/Disclosure/Disclosure.tsx#L57. The docs were outdated
|
|
||
| | Имя | Описание | | ||
| | :----------------------------------- | :------------------------------------- | | ||
| | `--g-disclosure-text-color` | Цвет текста заголовка trigger | |
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.
Цвет текста краткого описания контента
| | Имя | Описание | | ||
| | :----------------------------------- | :------------------------------------- | | ||
| | `--g-disclosure-text-color` | Цвет текста заголовка trigger | | ||
| | `--g-disclosure-text-color-disabled` | Цвет текста заблокированного заголовка | |
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.
Цвет текста краткого описания контента в заблокированном состоянии
|
|
||
| | Имя | Описание | Тип | Значение по умолчанию | | ||
| | :--------------- | :-------------------------------------------------------------- | :---------------------------------------------------- | :-------------------- | | ||
| | size | Размер раскрытия | `"m"` `"l"` `"xl"` | `"m"` | |
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.
Размер компонента
| | expanded | Контролируемое состояние раскрытия | `boolean` | | | ||
| | arrowPosition | Положение контрола | `"start"` `"end"` `"left"` `"right"` | `"left"` | | ||
| | summary | Краткое описание контента | `React.ReactNode` | | | ||
| | keepMounted | Сохранение контента в DOM | `boolean` | `true` | |
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.
Сохранение контента в DOM при скрытии
Added proper docs for the landing page in terms of https://st.yandex-team.ru/DATAUI-3464