Skip to content

[Docs] EuiProvider custom breakpoints example no longer works #7829

@cee-chen

Description

@cee-chen

Problem

https://eui.elastic.co/#/theming/breakpoints/values#custom-values

Broken EuiProvider example:

<EuiProvider modify={{ breakpoint: CUSTOM_BREAKPOINTS }}>

The PR that broke this was #6949 - we now return early for nested EuiProviders, meaning there can only be one top-level provider on each page, meaning the example is now broken 😅

Solution

  • One quick fix could be creating a Storybook with custom breakpoints and then embedding it as an iframe
  • Alternatively, we could simply wait until EUI+ where everything will be on Storybook embeds at that point in any case

Metadata

Metadata

Assignees

Labels

documentationIssues or PRs that only affect documentation - will not need changelog entriesknown issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions