Tab link #4

Closed
opened 2024-07-15 11:55:27 -04:00 by am · 2 comments
Owner

Might be helpful to be able to provide a link to a specific tab within a pattern. This would need to allow for link generation, as well as link detection and activation

Might be helpful to be able to provide a link to a specific tab within a pattern. This would need to allow for link generation, as well as link detection and activation
am added the
Kind/Enhancement
Priority
2 Medium
labels 2024-07-15 11:55:27 -04:00
am added
Priority
3 Low
and removed
Priority
2 Medium
labels 2024-07-16 04:13:15 -04:00
am added the
Pattern/Tabs
label 2024-12-04 10:16:43 -05:00
Author
Owner

Triggering a click on the tab will activate it. We can do this using the document.location.hash.

Triggering a click on the tab will activate it. We can do this using the document.location.hash.
Author
Owner

Triggering the correct tab is working, but it's also generating a JS error that we should fix before we close this issue.

The link generation should be done in the core. and then should be documented how to implement it in your project for projects that are using the tabs in their own design system and generating the link might be unique in each project's case.

For DS2, it should probably generate a link that also contains the specific pattern and it should be in _core.js. This is not because there could be a conflict, but because finding the activated tab without knowing which pattern would be a pain.

Triggering the correct tab is working, but it's _also_ generating a JS error that we should fix before we close this issue. The link generation should be done in the core. and then should be documented how to implement it in your project for projects that are using the tabs in their own design system and generating the link might be unique in each project's case. For DS2, it should probably generate a link that also contains the specific pattern and it should be in _core.js. This is not because there could be a conflict, but because finding the activated tab without knowing which pattern would be a pain.
am added
Priority
1 High
and removed
Priority
3 Low
labels 2025-01-30 19:51:09 -05:00
am closed this issue 2025-01-30 23:01:01 -05:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gamv/ds2-core#4
No description provided.