← Checking Out: Progress Meters
You might place the default progress meter on a page before the process begins; for example, on a shopping cart summary page. When none of the steps are given the class name "current", all of the steps appear in the default (non-active) state.
There are three steps in this checkout process.
This is what a text-only browser will display:
There are three steps in this checkout process.
- Enter your shipping information
- Enter your payment information
- Review details and place your order
This is what a screen reader will read to the user:
There are three steps in this checkout process. List of three items. One, enter your shipping information. Two, enter your payment information. Three, review details and place your order. List end.
To show an active state, add the class "current" to one of the list items. Then add span elements within the list items to host copy that describes the state to the user.
There are three steps in this checkout process.
In a text-only browser, this is rendered as follows:
There are three steps in this checkout process.
- You are currently entering your shipping information
- In the next step, you will enter your payment information
- In the last step, you will review the details and place your order
There are three steps in this checkout process.
A screen reader will read the following:
There are three steps in this checkout process. List of three items. One, you have already entered your shipping information. Two, you are currently entering your payment information. Three, in the next step, you will review the details and place your order. List end.
There are three steps in this checkout process.
In a text-only browser, this is rendered as follows:
There are three steps in this checkout process.
- You have already entered your shipping information
- You have already entered your payment information
- Now, review the details and place your order