brand icon indicating copy to clipboard operation
brand copied to clipboard

Anchor links for `FAQ` Questions

Open sergioalvz opened this issue 7 months ago • 1 comments

Hey Primer Brand friends,

We've received a request about how convenient it would be to add anchor links to specific questions inside the FAQ component so they can be easily shared with customers. I see the FAQ has some support for passing around id attributes, but from reading the docs, I don't think it offers any control to detect when a FAQ question is selected to change the URL accordingly. I guess supporting this kind of behavior will need a hybrid approach where certain logic needs to happen on the application side, but some could also be added to the component itself. For example, Primer Brand could facilitate expanding the right question when there are FAQ groups involved.

How do you feel about this functionality? Do you happen to have any directions to make it work today?

sergioalvz avatar Jul 09 '24 11:07 sergioalvz