Skip to content

Add Emotion utilities to work with container queries #8964

Closed

Description

@tkajtoch

Problem Statement

Working with container queries in Emotion is not standardized.

Proposed Solution

EUI should provide utilities to work with container queries, specifically:

  • euiContainer(name: string, type?: ContainerType): string
  • euiContainerCSS(name: string, type?: ContainerType): SerializedStyles
  • euiContainerQuery(conditions: string, containerName?: string): string

Use Case

This will be hugely useful internally in components like EuiDataGrid as well as externally across Kibana, Cloud and other Elastic products.

Value / Impact

See the parent epic.

Urgency

See the parent epic.

Do alternatives or workarounds exist?

It's possible to write the styles by hand, however, having utilities like these allows us to track usage closely, provide linting rules, and more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions