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

Enhance ability to apply CSS to components / blocks #2104

Closed
abidlabs opened this issue Aug 28, 2022 · 1 comment
Closed

Enhance ability to apply CSS to components / blocks #2104

abidlabs opened this issue Aug 28, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@abidlabs
Copy link
Member

As people build more custom demos with Gradio, there is a need for custom stylization for individual Blocks and components. We already provide some ability to target Blocks with css through the elem_id parameter, but:

  • Right now, some components/blocks don't support the elem_id parameter. Can we do a sweep and make sure every Block supports this parameter correctly
  • Can we provide a similar elem_class parameter to make it easier to reuse css styles across similar components?

See original comment by @altryne: #2071 (comment)

@abidlabs abidlabs added this to the Gradio Viral milestone Aug 28, 2022
@abidlabs abidlabs added the enhancement New feature or request label Aug 28, 2022
@abidlabs
Copy link
Member Author

We now support elem_classes so this can be closed!

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

No branches or pull requests

1 participant