question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RefinementList label customization

See original GitHub issue

Is your feature request related to a problem? Please describe 🙏

RefinementList component can not receive custom label like ToggleRefinement do. It always use raw ‘attribute’ as label. Thus, it is more difficult to display a beautiful label in CurrentRefinements component/connector.

Describe the solution you’d like 🤔

Two possible solutions :

  1. Add a label prop to connectCurrentRefinements and CurrentRefinements and use it in getMetadata function.
  2. Add a translations prop to connectCurrentRefinements and CurrentRefinements and use it to convert the attribute name to intelligible name.

Describe alternatives you’ve considered ✨

I am going to translate the label in my display component using attribute raw name (ex : owner.nickname) as source.

Additional context

No additional context.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
callmekatootiecommented, Apr 2, 2022

Yep - I thought that’s what @LeComptoirDesPharmacies was asking about too. I am mistaken though.

Anyhow - that definitely answered my question. I was looking for the Panel Widget indeed.

1reaction
Haroenvcommented, Mar 29, 2022

Yes, that’s unfortunately the best option I see for now @LeComptoirDesPharmacies, I more think that @callmekatootie was asking a different question, not related to current refinements?

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found