Yann Cébron 5d4d1d75e9
2024.2 release (#1347)
* switch to 242, update gh-ic links

* fix link

* fix link

* fix link

* fix link

* regen EP lists

still some diff between 242 and EAP8

* convert gh-ic-master links

* GH code-samples: update PV IDE versions

* code samples: adjust target IDE&since/until values

* regen EP lists from release branch

* intellij_community_plugins_extension_point_list.md: fix duplicate heading

* intellij_community_plugins_extension_point_list.md: fix DevKit.lang.visitorProviderForRBCInspection EP

* GH: update PV versions

* 2024.2 GA
2024-08-07 09:59:03 +02:00

2.4 KiB
Raw Blame History

Tabs

UI guidelines on using tabs.

Implementation: JBTabbedPane

Tabs organize content in dialogs by grouping similar UI controls.

{width=322}

In code editors, tabs are created with another component — JBEditorTabs. It supports extended functionality like icons, closeable, and draggable tabs. Do not use this component in dialogs.

In tool windows, tabs are generated automatically. See also Tool window.

When to use

Follow the rules in Groups of controls.

How to use

Use title capitalization for tab labels.

Make the label short, preferably no more than 3 words. Avoid generic words, such as "General" or "Advanced". See Writing short and clear.

{width=284}

Place the most frequently used content in the first tab. Tabs that do not fit allotted screen space automatically hide under the dropdown component. (It is better to add no more than 8 tabs, but this number is not limited.)

{width=533}

Always place tabs on top. It is possible to place them at other sides of the content — bottom, left, or right — but such a placement is extremely rare and might confuse users.

Do not remove or disable a tab when its function is unavailable. Explain why a tabs content is unavailable in the body of the tab.

Placement

Make sure the border of the tab reaches the edges of the area tabs occupy.

Incorrect

{width=595}

Correct

{width=595}

Do not surround the tab content area with a visible border.

Incorrect

{width=595}

Avoid placing independent content groups under the tabs' area.

Incorrect

{width=595}

When there are other UI controls above tabs, separate them with a vertical indent.

{width=595}