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

feat: inactive tab persistence for Tabs #2975

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Iddodo
Copy link

@Iddodo Iddodo commented Nov 2, 2024

This commit adds an opt-in feature that causes all tabs contents to be created without regard to their active status, whereas only the active tab is being shown.

Description

Related links, issue #, if available: n/a

How has this been tested?

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Ido Merenstein added 2 commits November 2, 2024 22:54
This commit adds an opt-in feature that causes all tabs contents to be
created without regard to their active status, whereas only the active
tab is being shown.
This commit adds an opt-in feature that causes all tabs contents to be
created without regard to their active status, whereas only the active
tab is being shown.
Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.70%. Comparing base (f8a0f5b) to head (47f7824).
Report is 17 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2975      +/-   ##
==========================================
- Coverage   96.25%   95.70%   -0.55%     
==========================================
  Files         768      768              
  Lines       21749    21751       +2     
  Branches     7034     7437     +403     
==========================================
- Hits        20934    20817     -117     
- Misses        807      926     +119     
  Partials        8        8              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -74,9 +74,11 @@ export interface TabsProps extends BaseComponentProps {
*/
i18nStrings?: TabsProps.I18nStrings;
/**
* Enabling this property makes the tab content fit to the available height.
* If the tab content is too short, it will stretch. If the tab content is too long, a vertical scrollbar will be shown.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've removed the description for fitHeight

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants