Skip to content
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

Is the style of options in EuiComboBox customizable? #8264

Open
jusa3 opened this issue Jan 9, 2025 · 0 comments
Open

Is the style of options in EuiComboBox customizable? #8264

jusa3 opened this issue Jan 9, 2025 · 0 comments
Labels

Comments

@jusa3
Copy link

jusa3 commented Jan 9, 2025

The drop down menu in EuiComboBox can be styled using the inputPopoverProps property (from the docs: "Allows customization of the underlying EuiInputPopover component (except for props that control state)"). Is it also possible to style the options in the drop down menu?

My problem is that when I disable the global styles in EuiProvider, my component looks like this:

Image

What I want it to look like (without the global styles but custom styles):

Image

What I found out:

  • EuiComboBox uses React portals, so custom styles can't just be passed down through css classes in the component
  • Modifying .euiComboBoxOptionsList {} has some effect
  • Modifying .euiComboBoxOptions {} has no effect

Key information

EUI version: 97.3.1
React version: 17.0.2
Build tool: Rollup

Follow-up question for #8203

@jusa3 jusa3 added the question label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant