-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Dashboard][Collapsable Panels] Grid styles #204060
Labels
Feature:Dashboard
Dashboard related features
impact:high
Addressing this issue will have a high level of impact on the quality/strength of our product.
loe:medium
Medium Level of Effort
Project:Collapsable Panels
Related to the project for adding collapsable sections to Dashboards.
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
Comments
Heenawter
added
Feature:Dashboard
Dashboard related features
impact:high
Addressing this issue will have a high level of impact on the quality/strength of our product.
loe:small
Small Level of Effort
Project:Collapsable Panels
Related to the project for adding collapsable sections to Dashboards.
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
labels
Dec 12, 2024
Pinging @elastic/kibana-presentation (Team:Presentation) |
This was referenced Dec 12, 2024
andreadelrio
changed the title
[Dashboard][Collapsable Panels] Design Update
[Dashboard][Collapsable Panels] Grid styles
Jan 8, 2025
3 tasks
Heenawter
added
loe:medium
Medium Level of Effort
and removed
loe:small
Small Level of Effort
labels
Jan 16, 2025
Heenawter
added a commit
to Heenawter/kibana
that referenced
this issue
Jan 21, 2025
Closes elastic#204060 ## Summary This PR updates the styles used for `kbn-grid-layout` in Dashboard as shown below. - **Dragging** | Before | After | |--------|--------| | ![image](https://github.com/user-attachments/assets/13161969-3eaf-4dce-bcf4-7b4850215816) | ![image](https://github.com/user-attachments/assets/d76dc678-6277-4819-b554-f6b66b200c0c) | | ![image](https://github.com/user-attachments/assets/84d8d489-2240-4f10-809f-0aa30415f408) | ![image](https://github.com/user-attachments/assets/573d71ad-71fb-47ab-a34e-66b845ecff67) | - **Resizing** | Before | After | |--------|--------| | ![image](https://github.com/user-attachments/assets/79dfebd0-538b-4193-9b66-30961e9c7b21) | ![image](https://github.com/user-attachments/assets/bc66ed35-83c4-4291-8cec-6ae8dda8f006) | | ![image](https://github.com/user-attachments/assets/d3fb5643-a77f-416f-9fc3-53af6225782a) | ![image](https://github.com/user-attachments/assets/df2c65d5-af52-4848-b16c-f9f85abd5d9a) | As part of this work, I moved all aesthetic style logic out of the `kbn-grid-layout` package and added support for Emotion to the `GridLayout` component instead - this means that the consumer is responsible for applying styles based on given classes, and `kbn-grid-layout` is now less opinionated. The only styling kept in the `kbn-grid-layout` package are those that handle layout-engine specific functionality (positioning of panels, hiding edit actions in view mode, etc). In addition, I also updated the styles used in the grid example app and added settings for dynamically changing the grid gutter size + row height: https://github.com/user-attachments/assets/c2f06db1-7041-412e-b546-86b102cc0770 ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) ### Identify risks This PR has minimal risk, since it is primarily style changes. --------- Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit 5ee4297) # Conflicts: # src/platform/packages/private/kbn-grid-layout/grid/drag_preview.tsx # src/platform/packages/private/kbn-grid-layout/grid/grid_panel/resize_handle.tsx # src/platform/packages/private/kbn-grid-layout/grid/grid_row/grid_row.tsx
viduni94
pushed a commit
to viduni94/kibana
that referenced
this issue
Jan 23, 2025
Closes elastic#204060 ## Summary This PR updates the styles used for `kbn-grid-layout` in Dashboard as shown below. - **Dragging** | Before | After | |--------|--------| | ![image](https://github.com/user-attachments/assets/13161969-3eaf-4dce-bcf4-7b4850215816) | ![image](https://github.com/user-attachments/assets/d76dc678-6277-4819-b554-f6b66b200c0c) | | ![image](https://github.com/user-attachments/assets/84d8d489-2240-4f10-809f-0aa30415f408) | ![image](https://github.com/user-attachments/assets/573d71ad-71fb-47ab-a34e-66b845ecff67) | - **Resizing** | Before | After | |--------|--------| | ![image](https://github.com/user-attachments/assets/79dfebd0-538b-4193-9b66-30961e9c7b21) | ![image](https://github.com/user-attachments/assets/bc66ed35-83c4-4291-8cec-6ae8dda8f006) | | ![image](https://github.com/user-attachments/assets/d3fb5643-a77f-416f-9fc3-53af6225782a) | ![image](https://github.com/user-attachments/assets/df2c65d5-af52-4848-b16c-f9f85abd5d9a) | As part of this work, I moved all aesthetic style logic out of the `kbn-grid-layout` package and added support for Emotion to the `GridLayout` component instead - this means that the consumer is responsible for applying styles based on given classes, and `kbn-grid-layout` is now less opinionated. The only styling kept in the `kbn-grid-layout` package are those that handle layout-engine specific functionality (positioning of panels, hiding edit actions in view mode, etc). In addition, I also updated the styles used in the grid example app and added settings for dynamically changing the grid gutter size + row height: https://github.com/user-attachments/assets/c2f06db1-7041-412e-b546-86b102cc0770 ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) ### Identify risks This PR has minimal risk, since it is primarily style changes. --------- Co-authored-by: kibanamachine <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Feature:Dashboard
Dashboard related features
impact:high
Addressing this issue will have a high level of impact on the quality/strength of our product.
loe:medium
Medium Level of Effort
Project:Collapsable Panels
Related to the project for adding collapsable sections to Dashboards.
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
Describe the feature:
Before we can resolve #190446, we need a final design review of the layout engine styles - for example, changing the linear grid that shows up on hover to a dot grid, maybe changing the style of the resize handle, etc.
The text was updated successfully, but these errors were encountered: