<a href="/wiki/display/CPDesign/Nested+Button">Nested Button</a>

e

Table of Contents

Overview

Anatomy

Rounded Nested Button

<div> <div></div> <div>Element</div> <div>Desktop (Compact)</div> <div>Mobile (Cozy)</div> </div> <div> <div>A</div> <div>Touch area</div> <div>width: 1.625rem;<br>height: 1.625rem</div> <div>width: 2rem;<br>height: 2rem;</div> </div> <div> <div>B</div> <div>Icon</div> <div>font-size: 0.75rem;<br>icon size: 0.75 x 0.75rem<br>vertically and horizontally centered</div> </div> <div> <div>C</div> <div>Button Visual</div> <div>width: 1.375rem;<br>height: 1.375rem;<br>border-radius: 1rem;<br>border: none;</div> <div>width: 1.5rem;<br>height: 1.5rem;</div> </div>

Square Nested Button

<div> <div></div> <div>Element</div> <div>Desktop (Compact)</div> <div>Mobile (Cozy)</div> </div> <div> <div>A</div> <div>Touch area</div> <div>width: 1.625rem;<br>height: 1.625rem</div> <div>width: 2rem;<br>height: 2rem;</div> </div> <div> <div>B</div> <div>Icon</div> <div>font-size: 0.75rem;<br>icon size: 0.75 x 0.75rem<br>vertically and horizontally centered</div> </div> <div> <div>C</div> <div>Button Visual</div> <div>width: 1.375rem;<br>height: 1.375rem;<br>border-radius: 0.1875rem;<br>border: none;</div> <div>width: 1.5rem;<br>height: 1.5rem;</div> </div>

Appearance

Interaction States

&#x3C;p&#x3E;&#x3C;div&#x3E; &#x3C;div&#x3E;State&#x3C;/div&#x3E; &#x3C;div&#x3E;Morning Horizon&#x3C;/div&#x3E; &#x3C;div&#x3E;Evening Horizon&#x3C;/div&#x3E; &#x3C;div&#x3E;Horizon HC&#x3C;/div&#x3E; &#x3C;div&#x3E;Preview&#x3C;/div&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;div&#x3E;&#x3C;strong&#x3E;Normal&#x3C;/strong&#x3E;&#x3C;/div&#x3E; &#x3C;div&#x3E;Background: var(--sapButton_Lite_Background);&#x3C;br&#x3E;color: var(--sapContent_IconColor);&#x3C;br&#x3E;border: var(--sapContent_Transparent_Border);&#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;picture&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;/content/dam/sapcom/design-system/btp/components/extensions/button/media1_1acc5ecbbf2bfe7b2120aff66678eceae9b5e12e5.png?width=2000&#x26;format=webply&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;./media_1acc5ecbbf2bfe7b2120aff66678eceae9b5e12e5.png?width=750&#x26;format=webply&#x26;optimize=medium&#x22;&#x3E; &#x3C;source type=&#x22;image/png&#x22; srcset=&#x22;./media_1acc5ecbbf2bfe7b2120aff66678eceae9b5e12e5.png?width=2000&#x26;format=png&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;img loading=&#x22;lazy&#x22; alt=&#x22;&#x22; src=&#x22;&#x3C;a href=&#x22;https://www.sap.com/design-system/btp/components/extensions/button/media%5C_1acc5ecbbf2bfe7b2120aff66678eceae9b5e12e5.png?width=750%5C&#x26;format=png%5C&#x26;optimize=medium&#x22;&#x3E;https://www.sap.com/design-system/btp/components/extensions/button/media_1acc5ecbbf2bfe7b2120aff66678eceae9b5e12e5.png?width=750&#x26;format=png&#x26;optimize=medium&#x3C;/a&#x3E;&#x22; width=&#x22;230&#x22; height=&#x22;300&#x22;&#x3E; &#x3C;/picture&#x3E; &#x3C;/div&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;div&#x3E;&#x3C;strong&#x3E;Hover&#x3C;/strong&#x3E;&#x3C;/div&#x3E; &#x3C;div&#x3E;color: var(--sapContent_IconColor);&#x3C;br&#x3E;border: var(--sapContent_Transparent_Border);&#x3C;br&#x3E;background: color-mix(in srgb, var(--sapElement_Hover_Color) var(--sapElement_Hover_Mix), transparent)&#x3C;/div&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;div&#x3E;&#x3C;strong&#x3E;Active&#x3C;/strong&#x3E;&#x3C;/div&#x3E; &#x3C;div&#x3E;color: var(--sapContent_IconColor);&#x3C;br&#x3E;border: var(--sapContent_Transparent_Border);&#x3C;br&#x3E;background: color-mix(in srgb, var(--sapElement_Active_Color) var(--sapElement_Active_Mix), transparent)&#x3C;/div&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;div&#x3E;&#x3C;strong&#x3E;Focused&#x3C;/strong&#x3E;&#x3C;/div&#x3E; &#x3C;div&#x3E;background: var(--sapButton_Lite_Background)&#x3C;br&#x3E;border-width: none;&#x3C;br&#x3E;outline: var(--sapContent_FocusStyle) var(--sapContent_FocusWidth) var(--sapContent_FocusColor);&#x3C;/div&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;div&#x3E;&#x3C;strong&#x3E;Disabled&#x3C;/strong&#x3E;&#x3C;/div&#x3E; &#x3C;div&#x3E;opacity: var(--sapContent_DisabledOpacity);&#x3C;/div&#x3E; &#x3C;/div&#x3E;&#x3C;/p&#x3E;

Accessibility

Keyboard

The keyboard handling for the Nested Button is based on the keyboard handling of the Button component. Refer to Fiori Keyboard Interaction for full specification of the component.

Screen Reader