kibana/examples
Hannah Mudge b060301d45
[8.x] [Dashboard][kbn-grid-layout] Update styles (#206503) (#207446)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Dashboard][`kbn-grid-layout`] Update styles
(#206503)](https://github.com/elastic/kibana/pull/206503)

<!--- Backport version: 9.6.4 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Hannah
Mudge","email":"Heenawter@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-01-21T19:52:39Z","message":"[Dashboard][`kbn-grid-layout`]
Update styles (#206503)\n\nCloses
https://github.com/elastic/kibana/issues/204060\r\n\r\n##
Summary\r\n\r\nThis PR updates the styles used for `kbn-grid-layout` in
Dashboard as\r\nshown below.\r\n\r\n- **Dragging**\r\n\r\n | Before |
After |\r\n
|--------|--------|\r\n|\r\n![image](573d71ad-71fb-47ab-a34e-66b845ecff67)\r\n|\r\n\r\n-
**Resizing**\r\n\r\n | Before | After |\r\n
|--------|--------|\r\n|\r\n![image](df2c65d5-af52-4848-b16c-f9f85abd5d9a)\r\n|\r\n\r\nAs
part of this work, I moved all aesthetic style logic out of
the\r\n`kbn-grid-layout` package and added support for Emotion to
the\r\n`GridLayout` component instead - this means that the consumer
is\r\nresponsible for applying styles based on given classes,
and\r\n`kbn-grid-layout` is now less opinionated. The only styling kept
in the\r\n`kbn-grid-layout` package are those that handle layout-engine
specific\r\nfunctionality (positioning of panels, hiding edit actions in
view mode,\r\netc).\r\n\r\nIn addition, I also updated the styles used
in the grid example app and\r\nadded settings for dynamically changing
the grid gutter size +
row\r\nheight:\r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/c2f06db1-7041-412e-b546-86b102cc0770\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\r\n-
[x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n###
Identify risks\r\n\r\nThis PR has minimal risk, since it is primarily
style changes.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"5ee429799449f1ce2874392bbbd0e752f42c4d50","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Dashboard","Team:Presentation","loe:medium","release_note:skip","impact:high","v9.0.0","backport:prev-minor","Project:Collapsable
Panels"],"title":"[Dashboard][`kbn-grid-layout`] Update
styles","number":206503,"url":"https://github.com/elastic/kibana/pull/206503","mergeCommit":{"message":"[Dashboard][`kbn-grid-layout`]
Update styles (#206503)\n\nCloses
https://github.com/elastic/kibana/issues/204060\r\n\r\n##
Summary\r\n\r\nThis PR updates the styles used for `kbn-grid-layout` in
Dashboard as\r\nshown below.\r\n\r\n- **Dragging**\r\n\r\n | Before |
After |\r\n
|--------|--------|\r\n|\r\n![image](573d71ad-71fb-47ab-a34e-66b845ecff67)\r\n|\r\n\r\n-
**Resizing**\r\n\r\n | Before | After |\r\n
|--------|--------|\r\n|\r\n![image](df2c65d5-af52-4848-b16c-f9f85abd5d9a)\r\n|\r\n\r\nAs
part of this work, I moved all aesthetic style logic out of
the\r\n`kbn-grid-layout` package and added support for Emotion to
the\r\n`GridLayout` component instead - this means that the consumer
is\r\nresponsible for applying styles based on given classes,
and\r\n`kbn-grid-layout` is now less opinionated. The only styling kept
in the\r\n`kbn-grid-layout` package are those that handle layout-engine
specific\r\nfunctionality (positioning of panels, hiding edit actions in
view mode,\r\netc).\r\n\r\nIn addition, I also updated the styles used
in the grid example app and\r\nadded settings for dynamically changing
the grid gutter size +
row\r\nheight:\r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/c2f06db1-7041-412e-b546-86b102cc0770\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\r\n-
[x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n###
Identify risks\r\n\r\nThis PR has minimal risk, since it is primarily
style changes.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"5ee429799449f1ce2874392bbbd0e752f42c4d50"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206503","number":206503,"mergeCommit":{"message":"[Dashboard][`kbn-grid-layout`]
Update styles (#206503)\n\nCloses
https://github.com/elastic/kibana/issues/204060\r\n\r\n##
Summary\r\n\r\nThis PR updates the styles used for `kbn-grid-layout` in
Dashboard as\r\nshown below.\r\n\r\n- **Dragging**\r\n\r\n | Before |
After |\r\n
|--------|--------|\r\n|\r\n![image](573d71ad-71fb-47ab-a34e-66b845ecff67)\r\n|\r\n\r\n-
**Resizing**\r\n\r\n | Before | After |\r\n
|--------|--------|\r\n|\r\n![image](df2c65d5-af52-4848-b16c-f9f85abd5d9a)\r\n|\r\n\r\nAs
part of this work, I moved all aesthetic style logic out of
the\r\n`kbn-grid-layout` package and added support for Emotion to
the\r\n`GridLayout` component instead - this means that the consumer
is\r\nresponsible for applying styles based on given classes,
and\r\n`kbn-grid-layout` is now less opinionated. The only styling kept
in the\r\n`kbn-grid-layout` package are those that handle layout-engine
specific\r\nfunctionality (positioning of panels, hiding edit actions in
view mode,\r\netc).\r\n\r\nIn addition, I also updated the styles used
in the grid example app and\r\nadded settings for dynamically changing
the grid gutter size +
row\r\nheight:\r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/c2f06db1-7041-412e-b546-86b102cc0770\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\r\n-
[x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] The PR
description includes the appropriate Release Notes section,\r\nand the
correct `release_note:*` label is applied per
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n###
Identify risks\r\n\r\nThis PR has minimal risk, since it is primarily
style changes.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"5ee429799449f1ce2874392bbbd0e752f42c4d50"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-21 20:10:26 -05:00
..
bfetch_explorer Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
content_management_examples [8.x] [Discover] Rename Saved Search to Discover Session (#202217) (#204818) 2024-12-19 21:38:57 +11:00
controls_example [8.x] [Serialized state only] Update Library Transforms and Duplicate (#206140) (#207455) 2025-01-21 23:35:16 +00:00
data_view_field_editor_example [8.x] Upgrade EUI to v98.2.1-borealis.1 (#204783) 2025-01-08 09:59:50 +00:00
developer_examples [8.x] Preparation for High Contrast Mode, Core/SharedUX domains (#202606) (#203147) 2024-12-06 10:02:27 +01:00
discover_customization_examples [8.x] Preparation for High Contrast Mode, Analytics Experience domains (#202608) (#204120) 2024-12-12 15:08:55 -06:00
embeddable_examples [8.x] [Serialized state only] Update Library Transforms and Duplicate (#206140) (#207455) 2025-01-21 23:35:16 +00:00
error_boundary [8.x] Upgrade EUI to v98.2.1-borealis.1 (#204783) 2025-01-08 09:59:50 +00:00
eso_model_version_example [8.x] More strict plugin type definitions (#205232) (#205778) 2025-01-07 17:32:59 +00:00
esql_ast_inspector [8.x] Upgrade EUI to v98.2.1-borealis.1 (#204783) 2025-01-08 09:59:50 +00:00
esql_validation_example [8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-esql (#202722) (#203390) 2024-12-09 10:20:46 -06:00
expressions_explorer [8.x] Preparation for High Contrast Mode, Analytics Experience domains (#202608) (#204120) 2024-12-12 15:08:55 -06:00
feature_control_examples [8.x] Added scope field to features config. (#191634) (#193389) 2024-09-19 10:42:43 -05:00
feature_flags_example [8.x] [Feature Flags Example Plugin] Change ctx provider (#201097) (#201356) 2024-11-22 14:57:17 +01:00
field_formats_example [8.x] Upgrade EUI to v98.2.1-borealis.1 (#204783) 2025-01-08 09:59:50 +00:00
files_example [8.x] [Authz] Migrate outstanding SharedUX routes with access tags (#206260) (#206435) 2025-01-13 15:32:00 +00:00
grid_example [8.x] [Dashboard][kbn-grid-layout] Update styles (#206503) (#207446) 2025-01-21 20:10:26 -05:00
guided_onboarding_example [8.x] Sustainable Kibana Architecture: Move plugins owned by @elastic/appex-sharedux (#204959) (#205508) 2025-01-05 19:48:48 +00:00
hello_world Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
locator_examples Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
locator_explorer Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
partial_results_example [8.x] Upgrade EUI to v98.2.1-borealis.1 (#204783) 2025-01-08 09:59:50 +00:00
portable_dashboards_example [8.x] Preparation for High Contrast Mode, Analytics Experience domains (#202608) (#204120) 2024-12-12 15:08:55 -06:00
preboot_example Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
resizable_layout_examples [8.x] Preparation for High Contrast Mode, Analytics Experience domains (#202608) (#204120) 2024-12-12 15:08:55 -06:00
response_stream [8.x] [ML] AIOps: Log Rate Analysis embeddable (#197943) (#198963) 2024-11-05 10:36:04 -06:00
routing_example [8.x] Preparation for High Contrast Mode, Core/SharedUX domains (#202606) (#203147) 2024-12-06 10:02:27 +01:00
screenshot_mode_example Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
search_examples [8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-visualizations (#202754) (#205974) 2025-01-13 10:53:37 +00:00
share_examples [8.x] [Reporting] fix dashboard &quot;Copy Post URL&quot; action (#192530) (#195334) 2024-10-08 03:44:43 +02:00
state_containers_examples [8.x] Sustainable Kibana Architecture: Move plugins owned by @elastic/appex-sharedux (#204959) (#205508) 2025-01-05 19:48:48 +00:00
ui_action_examples [8.x] Preparation for High Contrast Mode, Core/SharedUX domains (#202606) (#203147) 2024-12-06 10:02:27 +01:00
ui_actions_explorer [8.x] Preparation for High Contrast Mode, Core/SharedUX domains (#202606) (#203147) 2024-12-06 10:02:27 +01:00
unified_doc_viewer [8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-data-discovery (#205267) 2024-12-30 13:03:12 -06:00
unified_field_list_examples [8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-data-discovery (#205267) 2024-12-30 13:03:12 -06:00
user_profile_examples Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
v8_profiler_examples Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
README.asciidoc Adds run without basepath configured to examples readme (#173086) 2023-12-12 11:22:02 -07:00

[[example-plugins]]
== Example plugins

This folder contains example plugins.  To run the plugins in this folder, use the `--run-examples` flag (without a basepath), via

[source,bash]
----
yarn start --run-examples
----