Button styles for actions in forms, modals, as standalone elements, etc.
Notice button labels are sentence case.
Apply the .btn class to the <button/> element to make them look like buttons. Adjust the button sizing with .btn--lg for larger buttons and .btn--sm for smaller buttons (only available on desktops).
You may also use the .btn class on <a> or <input> elements (though some browsers may apply a slightly different rendering).
When using button classes on <a> elements that are used to trigger in-page functionality (like collapsing content), rather than linking to new pages or sections within the current page, these links should be given a role="button" to appropriately convey their purpose to assistive technologies such as screen readers.
Disabled buttons appear inactive by adding the disabled boolean attribute to <button> elememts.
For buttons using <a> element, use the .disabled class to make them appear inactive. Disabled buttons should include the aria-disabled="true" attribute to indicate the state of the element to assistive technologies and tabindex="-1" to prevent them from receiving keyboard focus. Additionally, it is best practice to use custom JavaScript to disable functionality.