Buttons allow the user to interact with content, enter data, and navigate the site. Buttons capture the user’s attention to take desired actions. By differentiating primary from secondary buttons, users understand the most important action.
Buttons have multiple uses within a digital experience and can be styled in varying ways. Primary and secondary buttons should be clear and predictable, and positioned in consistent locations in the interface. Control buttons carry less visual weight, but provide functional control within a component. All button elements trigger an event.
Touch affordance allows the user to select an item on a touch screen interface and is important to ensure users easily understand where they can physically interact with touch targets. Proper touch affordance allows users of all abilities to select the intended target and avoid tapping the wrong element.
Example: Buttons must be large enough (or far enough away from other buttons/interactive elements) so they are easily clicked or tapped. Buttons should be 44px high/wide when touching/no margin.
Using buttons as they’re intended allows screen-reader users the context they need to understand and interact with your content. Clearly label buttons with descriptive names of the button function. For custom buttons, add additional descriptions and attributes to properly describe user input. This gives keyboard users clarity and prevents attempts to open the wrong element (false links).
Ensure designs meet color/contrast requirements on Color Guidelines and follow Schwab Accessibility guidelines.