Background:
The euiThemeVars module from the @kbn/ui-theme package in Kibana needs to no longer be referenced in code as it is not suitable for proper EUI theming. The vars that we use in Kibana should be taken from EUI context.
Is your feature request related to a problem? Please describe.
Problem: The euiFormMaxWidth var from euiThemeVars is not available in EUI context.
Describe the solution you'd like
Add an additional token for euiFormMaxWidth on euiTheme.components.
Describe alternatives you've considered
- It is possible to import
euiFormMaxWidth from @elastic/eui/lib/components/form/form.styles, however that greatly increases the built bundle size wherever that gets included in a bundle.
- Duplicate the
euiFormMaxWidth function in Kibana.
Desired timeline
Early 2025
Additional context
A Kibana PR duplicated the euiFormMaxWidth function in code and added a FIXME that references this issue: elastic/kibana#202780
Background:
The
euiThemeVarsmodule from the@kbn/ui-themepackage in Kibana needs to no longer be referenced in code as it is not suitable for proper EUI theming. The vars that we use in Kibana should be taken from EUI context.Is your feature request related to a problem? Please describe.
Problem: The
euiFormMaxWidthvar fromeuiThemeVarsis not available in EUI context.Describe the solution you'd like
Add an additional token for
euiFormMaxWidthoneuiTheme.components.Describe alternatives you've considered
euiFormMaxWidthfrom@elastic/eui/lib/components/form/form.styles, however that greatly increases the built bundle size wherever that gets included in a bundle.euiFormMaxWidthfunction in Kibana.Desired timeline
Early 2025
Additional context
A Kibana PR duplicated the
euiFormMaxWidthfunction in code and added a FIXME that references this issue: elastic/kibana#202780