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

Add ability to use an element as label in <FilterListItem> #6034

Merged
merged 1 commit into from
Mar 15, 2021

Conversation

fzaninotto
Copy link
Member

@fzaninotto fzaninotto commented Mar 14, 2021

Problem

Text FilterListItems aren't always enough. How does one display the following filter items?

image

Note: it is actually possible to use an Element instead of a string with the current code in JS but TypeScript compilation fails.

Solution

Accept a React element as label, and don't pass through translate in this case

@fzaninotto fzaninotto changed the title FilterListItem-element-label Add ability to use an element as label in <FilterListItem> Mar 14, 2021
@djhi djhi added this to the 3.14 milestone Mar 15, 2021
@djhi djhi merged commit 2e3dfa1 into next Mar 15, 2021
@djhi djhi deleted the FilterListItem-element-label branch March 15, 2021 08:13
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

Successfully merging this pull request may close these issues.

2 participants