Layout
Layout components define a page’s structure and the areas for navigation and content.Chat panel updates
When the platform-dst-chat-panel-layout feature flag is enabled, the layout supports displaying panel and chat panel at the same time, with updated resizing and responsive behavior.
Neutral selected states
When the platform-dst-tokens-finesse feature flag is enabled, this component uses the new neutral treatment for selected states.
Usage
Layout provides a consistent structure for navigation and content across Atlassian apps. It manages page behavior across viewport sizes, including when users open, close, or resize layout areas.
Parts

Layout contains the following areas:
- Banner (optional): Use to display a banner.
- Top nav: Use to display top nav items.
- Side nav: Use to display side nav items, (opens new window).
- Main: Use for the page header and content.
- Panel (optional): Use to display a panel.
- Chat panel (optional): Use to display Rovo Chat.
Behavior
Side nav, panel, and chat panel can be opened, closed, and resized. Layout adjusts the widths of open areas to fit the available space, using overlays when the areas can’t fit side by side.
See the examples tab for width settings and detailed resizing behavior, or explore the interactive example, (opens new window).
Opening and closing layout areas
- Side nav: Expands or collapses using the toggle button in top nav.
- Panel: Opens in response to an action in the app, such as selecting an item or button, and closes using its close button. See panel for guidance.
- Chat panel: Opens through Rovo Chat triggers, such as Ask Rovo in top nav, and closes using the close button within Rovo Chat.
Resizing layout areas
Side nav, panel, and chat panel can be resized by dragging their resize handles. Other layout areas adjust automatically within their width limits. Resizing doesn’t cause areas to collapse or become overlays.
Main isn’t directly resizable and fills the remaining space.
Each resizable area retains its chosen width when closed and reopened. Apps can control whether widths are also preserved across page navigation and refreshes.

Layout areas adapt to viewport size
Side nav, panel, and chat panel appear at their default widths, or the widths people have resized them to, when the viewport is wide enough. When there isn’t enough room, layout areas become narrower to stay side by side, down to their minimum widths.

Layout areas overlay when they no longer fit side by side
Panel and chat panel become overlays when the viewport isn’t wide enough for the open areas to fit side by side at their minimum widths. Panel overlays main first. If main and chat panel still can’t fit side by side at their minimum widths, chat panel overlays the rest of the app.


Side nav follows a fixed breakpoint. At viewport widths of 1,023px and below (xxs, xs, and s
breakpoints), it collapses and opens as an overlay. Side nav and chat panel can’t both be open as
overlays. Opening one closes the other.
Overlays can also be resized.
Accessibility
Reading order
The order of layout areas in the page structure determines how people move through them using a keyboard or screen reader.
Follow the component structure shown in the examples tab to preserve the intended reading and keyboard navigation order.
Landmarks and accessible names
Landmarks identify major page areas so screen reader users can navigate between them. Layout automatically provides landmark roles for top nav, side nav, main, panel, and chat panel. Don’t add another landmark role to identify the same layout area.
Side nav, panel, and chat panel have the default accessible names Sidebar, Panel, and Chat panel. Screen readers announce these names to identify the areas.
Give panel a meaningful name based on its content, such as Project details. When customizing an accessible name, describe the area’s purpose without repeating its landmark role.
For headings, header-action labels, and focus behavior within a panel, follow the panel accessibility guidance.
Keyboard resizing
People can use Tab to focus a resize handle, then use:
- Right arrow, Up arrow, or Page Up to make the area wider.
- Left arrow, Down arrow, or Page Down to make the area narrower.
- Home to set the minimum width.
- End to set the maximum available width.
Skip links
Layout provides skip links that let keyboard users move directly to page areas. Skip links for panel and chat panel are available when those areas are open.
The panel’s accessible name is also used for its skip link unless a separate skip-link label is supplied.
Use the skip links provided by layout. Avoid adding custom skip links.
Content reflow
When people zoom in, less content fits within the browser window. At 400% zoom, a viewport that started at 1,280px wide at 100% zoom has an effective width of 320px.
Main, panel, and chat panel have 320px minimum widths to support WCAG reflow requirements, (opens new window). Design content to adapt to these, then test the page at 400% browser zoom to confirm information and actions remain available and usable without horizontal scrolling.
Content that requires a two-dimensional layout, such as data tables and maps, is an exception.

Do
Design content to fit within 320px, keeping information available and actions usable at 400% zoom.

Don’t
Don’t rely on horizontal scrolling to make content fit. It makes text harder to follow.
Best practices
Use the supplied width settings
Do
Use the supplied default, minimum, and maximum widths where possible (see the examples tab for values). These settings are designed to work together across viewport sizes and as people open, close, or resize layout areas.
Don’t
Don’t override width settings without checking the effect on the whole layout. Check different viewport sizes, combinations of open areas, user resizing, and accessibility.

