mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Refactored Rating
This commit is contained in:
parent
21d8aae910
commit
69325de4e8
2 changed files with 8 additions and 8 deletions
|
@ -16,14 +16,14 @@ const classes = {
|
|||
],
|
||||
cancelIcon: 'p-rating-icon p-rating-cancel',
|
||||
item: ({ instance, props, value }) => [
|
||||
'p-rating-item',
|
||||
'p-rating-option',
|
||||
{
|
||||
'p-rating-item-active': value <= props.modelValue,
|
||||
'p-rating-option-active': value <= props.modelValue,
|
||||
'p-focus-visible': value === instance.focusedOptionIndex && instance.isFocusVisibleItem
|
||||
}
|
||||
],
|
||||
onIcon: 'p-rating-icon',
|
||||
offIcon: 'p-rating-icon'
|
||||
onIcon: 'p-rating-icon p-rating-on-icon',
|
||||
offIcon: 'p-rating-icon p-rating-off-icon'
|
||||
};
|
||||
|
||||
export default BaseStyle.extend({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue