Take the 2-minute tour ×
User Experience Stack Exchange is a question and answer site for user experience researchers and experts. It's 100% free, no registration required.

Designing an e-commerce website that is accessible, what would be the proper WAI ARIA role-attribute for the "shopping cart" section of the page?

I understand the current available document landmark roles are:

  • article
  • banner
  • complementary
  • contentinfo
  • main
  • navigation
  • search

However, I do not know which of the one I should use for this particular content.

share|improve this question

1 Answer 1

Those are not the only ARIA roles available for assignment to UI elements.

Most carts are tabular data structures which means the grid role would be appropriate. The cart could be contained inside a div with a main role.

Here are two relevant pages from WAI.

The roles model

The grid role

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.