Skip to main content

Rating

Rating component allows users to submit feedback and view average scores on a defined scale, reflecting your product, service or experience.

Also known as: Review, Star rating, Feedback
Salt package@salt-ds/core
Available since1.61.0
KeyFunction
Tab
  • Tab moves focus into the rating component. Focus is set to the selected rating item.
  • If the user hasn’t selected a rating item, Tab moves focus to the first rating item in the group.
  • If focus is inside the Rating component, Tab moves focus out of the Rating component. Focus is set to the next component in the tab order.
Space
  • If the focused rating item isn't selected, Space changes the state to selected.
Shift + Tab
  • If focus is inside the rating, this action moves focus out of the component. Focus is set to the previously selected rating item.
  • If focus is below the rating, this action move focus into the rating. Focus is set to the selected rating item.
Right arrow / Down arrow
  • This action moves focus to the next rating item in the rating component.
  • If focus is on the last rating item, this action wraps focus to the first rating item.
Left arrow / Up arrow
  • This action moves focus to the previous rating item in the Rating component.
  • If focus is on the first rating item, this action wraps focus to the last rating item.