-
Notifications
You must be signed in to change notification settings - Fork 119
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: new ui kit components #5546
base: master
Are you sure you want to change the base?
Conversation
Job gooddata-ui-sdk-unit-tests at https://checklist.intgdc.com/job/gooddata-ui-sdk/job/gooddata-ui-sdk-unit-tests/22321/ finished with 'FAILURE' status. |
fcc83b3
to
d2a9d77
Compare
extended test - backstop |
Job gooddata-ui-sdk-unit-tests at https://checklist.intgdc.com/job/gooddata-ui-sdk/job/gooddata-ui-sdk-unit-tests/22414/ finished with 'SUCCESS' status. |
extended test - backstop |
Job gooddata-ui-sdk-unit-tests at https://checklist.intgdc.com/job/gooddata-ui-sdk/job/gooddata-ui-sdk-unit-tests/22425/ finished with 'SUCCESS' status. |
Job gooddata-ui-sdk-pull-request-dispatcher-pipeline at https://checklist.intgdc.com/job/gooddata-ui-sdk/job/gooddata-ui-sdk-pull-request-dispatcher-pipeline/2332/ finished with 'FAILURE' status. |
extended test - backstop |
extended test - backstop |
Job gooddata-ui-sdk-unit-tests at https://checklist.intgdc.com/job/gooddata-ui-sdk/job/gooddata-ui-sdk-unit-tests/22432/ finished with 'SUCCESS' status. |
Job gooddata-ui-sdk-pull-request-dispatcher-pipeline at https://checklist.intgdc.com/job/gooddata-ui-sdk/job/gooddata-ui-sdk-pull-request-dispatcher-pipeline/2333/ finished with 'FAILURE' status. |
extended test - backstop |
Job gooddata-ui-sdk-unit-tests at https://checklist.intgdc.com/job/gooddata-ui-sdk/job/gooddata-ui-sdk-unit-tests/22433/ finished with 'SUCCESS' status. |
Job gooddata-ui-sdk-pull-request-dispatcher-pipeline at https://checklist.intgdc.com/job/gooddata-ui-sdk/job/gooddata-ui-sdk-pull-request-dispatcher-pipeline/2335/ finished with 'FAILURE' status. |
Add guide to write new components. Add new components to the UI kit: - UiButton - UiIcon Also add screenshot tests for them. Add default theme and theming validation, to avoid growing of the inconsistent default values in the theming variables. Add generation of the default scss theme. Suffix theming variables with inconsistent default values with `-from-theme` suffix, so we can start to use the default theme in scss and still keep theming backward compatible. These variables will be set only if ThemeProvider will set them, so they will be themed the same way as before, but keep fall backing to the default value, even with default theme set. Add experimental ScopedThemeProvider. risk: low
extended test - backstop |
Job gooddata-ui-sdk-unit-tests at https://checklist.intgdc.com/job/gooddata-ui-sdk/job/gooddata-ui-sdk-unit-tests/22443/ finished with 'SUCCESS' status. |
Follow these rules: | ||
- Use prefixes for root elements to avoid class name collisions (e.g., `.gd-ui-kit-button`, `.gd-ui-kit-icon`). | ||
- Minimize nesting and overrides for better readability and maintainability | ||
- Avoid using margins for root elements; components should not affect the layout of their parent or sibling elements. |
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.
"must not" instead of "should not" in this and the next sentence.
|
||
## Layouting | ||
|
||
Component should care only about its own layout. |
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.
Must here and the next sentence.
Add guide to write new components.
Add new components to the UI kit:
Also add screenshot tests for them.
Add default theme and theming validation, to avoid growing
of the inconsistent default values in the theming variables.
Add generation of the default scss theme.
Suffix theming variables with inconsistent default values with
-from-theme
suffix, so we can start to use the default themein scss and still keep theming backward compatible.
These variables will be set only if ThemeProvider will set them,
so they will be themed the same way as before, but keep
fall backing to the default value, even with default theme set.
Add experimental ScopedThemeProvider.
risk: low
JIRA: F1-123
Important
Please, don't forget to run
rush change
for the commits that introduce new features 🙏Refer to documentation to see how to run checks and tests in the pull request. This is the list of the most used commands: