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

Allow for sending in classes for all individual elements (especially required when using tailwind) #1472

Open
emattias opened this issue Nov 9, 2021 · 1 comment

Comments

@emattias
Copy link

emattias commented Nov 9, 2021

When styling with tailwind you send in classes for everything you style, so it would be nice to have args for that, like: @beforeOptionsInputClass, @optionClass, etc.

@mayatron
Copy link
Contributor

Something like this would be super useful for me as well. It would be really helpful in some cases to be able to more easily style parts of Ember Power Select without the overhead of providing fully custom components.

If we wanted to add corresponding @...Class arguments support to each of the composable components, we would add the following, as additional classes to the default ones included by Ember Power Select.

  • @afterOptionsClass
  • @beforeOptionsClass
  • @groupClass
  • @optionsClass
  • @optionClass (not a composable component, but useful)
  • @searchMessageClass
  • @selectedItemClass

@cibernox thoughts on this? I'd be happy to draft a PR for this (including doc changes and test coverage), if this is something you're open to considering. Happy to discuss any feedback you have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants