Component Blueprints

Summary Detail

Use Summary Detail to show and hide details while always showing a summary

Summary Title

In Progress

Additional information about this step

Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam quis risus eget urna mollis ornare vel eu leo. Nulla vitae elit libero, a pharetra augue.

About Summary Detail#

The summary detail component uses a button to show and hide content while showing an overall summary

Base#

Summary Title

Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam quis risus eget urna mollis ornare vel eu leo. Nulla vitae elit libero, a pharetra augue.

<div class="slds-summary-detail slds-is-open">
  <button class="slds-button slds-button_icon slds-m-right_x-small" title="Toggle details for Summary Title" aria-controls="expando-unique-id" aria-expanded="true">
    <svg class="slds-button__icon slds-summary-detail__action-icon" aria-hidden="true">
      <use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#switch"></use>

States#

Closed#

Summary Title

<div class="slds-summary-detail">
  <button class="slds-button slds-button_icon slds-m-right_x-small" title="Toggle details for Summary Title" aria-controls="expando-unique-id" aria-expanded="false">
    <svg class="slds-button__icon slds-summary-detail__action-icon" aria-hidden="true">
      <use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#switch"></use>

Examples#

Closed with Complex title#

Summary Title

In Progress

Additional information about this step

<div class="slds-summary-detail">
  <button class="slds-button slds-button_icon slds-m-right_x-small" title="Toggle details for Summary Title" aria-controls="expando-unique-id" aria-expanded="false">
    <svg class="slds-button__icon slds-summary-detail__action-icon" aria-hidden="true">
      <use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#switch"></use>

Open with Complex title#

Summary Title

In Progress

Additional information about this step

Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam quis risus eget urna mollis ornare vel eu leo. Nulla vitae elit libero, a pharetra augue.

<div class="slds-summary-detail slds-is-open">
  <button class="slds-button slds-button_icon slds-m-right_x-small" title="Toggle details for Summary Title" aria-controls="expando-unique-id" aria-expanded="true">
    <svg class="slds-button__icon slds-summary-detail__action-icon" aria-hidden="true">
      <use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#switch"></use>

Overview of CSS Classes#

Selector.slds-summary-detail
Summary

Initializes a summary detail

Supportdev-ready
Restrictdiv
VariantTrue
Selector.slds-summary-detail__action-icon
Summary

Styles the position of the toggle icon

Restrict.slds-summary-detail div
Selector.slds-summary-detail__content
Summary

Styles the visibility of the detail content

Restrict.slds-summary-detail div
Selector.slds-is-open
Summary

Toggle visibility of the detail section + rotate icon

Restrict.slds-summary-detail
ModifierTrue

Summary Detail Release Notes

2.22.1

Fixed

  • Matching styles for [dir=rtl] added.

    2.22.0

    Changed

  • Replaced aria-hidden with hidden attribute for components that show/hide content