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

Select which tab to focus #138

Open
mklomp opened this issue Sep 6, 2021 · 4 comments
Open

Select which tab to focus #138

mklomp opened this issue Sep 6, 2021 · 4 comments
Labels
enhancement Hacktoberfest Issue suitable for Hacktoberfest contributors

Comments

@mklomp
Copy link

mklomp commented Sep 6, 2021

Description / Summary

It would be nice if it could be possible to auto-select a tab on load. At the moment the first tab is always active.

Value / benefit

In order to explain the user what to type in which terminal I am planning on using tabs to show the 'status' of multiple linux terminals. It would help if the new 'terminal' tab would the be active.

Implementation details

No response

Tasks to complete

No response

@foster999
Copy link
Collaborator

I'm not clear what the "new" tab references here. Are tabs being dynamically added on a page in this use case? If yes, I'd recommend using custom JavaScript to select the new tab.

Otherwise, please could you provide more details on:

  1. The behaviour you'd like to see
  2. How you'd like to specify this behaviour in markdown

@chrisjsewell
Copy link
Member

I'd imagine it would be similar to the selected option in https://sphinx-design.readthedocs.io/en/furo-theme/tabs.html#tab-item-options 😉

@foster999
Copy link
Collaborator

Cheers @chrisjsewell - what happens here if a user marks multiple tabs as selected in a set?

@mklomp
Copy link
Author

mklomp commented Sep 7, 2021

@foster999, as far as I can see this would indeed be similar to the selected option mentioned by @chrisjsewell. I see that my description with the 'new' tab indeed might be a bit unclear ;).

@foster999 foster999 added the Hacktoberfest Issue suitable for Hacktoberfest contributors label Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Hacktoberfest Issue suitable for Hacktoberfest contributors
Projects
None yet
Development

No branches or pull requests

3 participants