Anatomy
- Container: Area the user can select to initiate the button action
- Icon: Graphic element that represents the button's intent
Usage
Button circular should always perform an action that is directly related to the content in view. Use the button circular to initiate a primary action in an experience. The action could affect the content in view, open a window (like a popover or modal) on top of the content, or take the user to another page.
Avoid using the button circular for any actions that are minor or destructive (like deleting a file).
Button circular versus button iconic
The button circular and button iconic look similar, but when and where you use the two components varies. Use a button circular when you want an action to always be present while the user engages with different pages or flows in an experience. Use a button iconic for actions that are only relevant to the page the user is currently viewing.
Variants
Learn about button circular and find out how to use it in your design.
Types
Button circular is a type of the button component. For additional button types, please visit the usage guidance for the button component.
Colors
Button circular has the following style variants: flat and elevated.
The type of variant you choose depends on the use case for the button circular. It will also depend on whether it is a main action on the page or if it is an action that affects more than just the page in view.
Sizes
Button circular has only one size. Whichever icon you use for the button circular automatically defaults to the large icon size. Button circular always stays the same size regardless of the display size.
Configurations
You can customize button circular by configuring the available properties.
Icons
You can select any of the icons in the Icon Gallery for the button circular. When selecting an icon, be sure that it always provides context around what happens when the user selects the button circular. Avoid selecting an icon that is ambiguous or could refer to multiple actions.
Note: Only icons can appear in a button circular. This component doesn't support text.
Flat (no shadow)
A flat button circular has no drop shadow and stays flushed with the rest of the experience. Use this variant when the user can distinguish the button from the rest of the content.
Elevated (shadow)
An elevated button circular includes a drop shadow to give the appearance that the button is on top of the experience. Use this variant to help distinguish the button from elements in the display.
Tooltip content
Button circular doesn’t have labels. Instead, it uses a tooltip to reinforce and supplement the button's intent. You can configure the content that appears inside of a tooltip. The tooltip appears on hover.
Design recommendations
Learn how to apply button circular in your design.
Alignment and positioning
Where you place the button circular depends on your use case, but remember to always position it in the same place throughout the experience. This consistency creates familiarity for the user and helps them use the experience more smoothly.
The icon within the button circular is always center aligned.
You can add space around the outside of the container but ensure that the space isn't so large that it obscures the button's relationship with the item it affects.
Behavior
Learn how button circular behaves when the display changes or a user interacts with the component.
States
Button circular has the following states: default, hover, pressed, focus, and disabled. A button circular may appear in the disabled state if the user's permissions don't give them access to the action or if the user can't perform the button's action on the current page.
Note: For mobile users, remember to remove the hover state so that the button isn't accidentally selected while scrolling.
State | Shadow | No shadow |
---|---|---|
Default | ||
Hover | ||
Pressed | ||
Focus | ||
Disabled |
Responsive behaviors
The button circular always stays in the same spot regardless of the display size.
Dragging and floating
You can configure a button circular to either drag or float as the user interacts with the experience. The drag behavior means that the button circular attaches to a predetermined position on the content and moves as the content scrolls. The float behavior means that the button circular attaches in a constant position on top of the content (like an edge or corner).
Interactions
The user can only select the button circular to initiate an action, like opening a modal or popover.
Usability
Button circular complies with all internationalization and accessibility requirements.
Internationalization
When the display translates to a right-to-left (RTL) language, the button flips its orientation on the screen. The icon only flips if it is directional based.
Accessibility
Learn how to access the actionable elements of button circular through keyboard interactions and screen readers.
Keyboard interactions
You can access the actionable elements of button circular with these keyboard keys:
- Tab: Shifts focus to the button circular if enabled
- Space or Enter: Initiates the button circular action
Screen readers
The button circular requires configuration of the aria-label attribute in the configAria property to be accessible using a screen reader.
By default, the screen reader announces the button label based on any text content inside the button element. However, because there is no text inside the button circular, a text label must be provided another way. Use aria-label or aria-labelledby to add a text label to the button circular.
When the button is enabled or disabled:
- If enabled and the user presses it, the screen reader announces the action
- If disabled, ensure that aria-disabled is set to "true"
When the button is linked to a dialog or non-modal window, It should have a label that indicates the availability of an interactive element that can be initiated by the button. To do this, use the aria-haspopup property