Tabs component and Search not working together #3110
Replies: 1 comment 1 reply
-
|
Thanks for the issue @kieranblack. I think this is working as intended currently: we don’t have a way to know if a navigation comes from a search click (or if we did, what content was the target) or if it’s just a regular navigation. It might be possible to support for cases where there is a subheading inside a tab because theoretically we could detect if there’s a fragment link that should be shown (e.g. navigating to Given we currently document tabs as being designed “for grouping equivalent information where a user only needs to see one of several options,” I think I’ll convert this to a feature request to see if it’s a common need, so we can consider whether there are technical solutions (it would require work likely both in how the tab HTML is structured and perhaps in how search results are indexed to ensure tab content could be targeted reliably). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of
starlightare you using?0.31.0
What version of
astroare you using?10.9.2
What package manager are you using?
npm
What operating system are you using?
Mac
What browser are you using?
Safari
Describe the Bug
Problem:
Search results don't navigate to the correct tab that has the content from the search result
How to replicate:
Participation
Beta Was this translation helpful? Give feedback.
All reactions