Skip to content

Commit

Permalink
Merge pull request #56 from primefaces/rating-accessibility
Browse files Browse the repository at this point in the history
Update for Accessibility - Rating
  • Loading branch information
gucal authored Feb 6, 2024
2 parents b7253ce + 04682f7 commit f3d9804
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions theme-base/components/input/_rating.scss
Original file line number Diff line number Diff line change
@@ -1,25 +1,46 @@
@use 'sass:math';

// core
.p-rating {
position: relative;
display: flex;
align-items: center;
}

.p-rating-item {
display: inline-flex;
align-items: center;
cursor: pointer;
}

.p-rating.p-readonly .p-rating-item {
cursor: default;
}

// theme
.p-rating {
gap: $inlineSpacing;

.p-rating-item {
outline-color: transparent;
border-radius: 50%;

.p-rating-icon {
color: $ratingStarIconOffColor;
transition: $formElementTransition;
font-size: $ratingIconFontSize;

&.p-icon {
width: $ratingIconFontSize;
height: $ratingIconFontSize;
height: $ratingIconFontSize;
}

&.p-rating-cancel {
color: $ratingCancelIconColor;
}
}

&:focus {
&.p-focus {
@include focused();
}

Expand Down Expand Up @@ -57,4 +78,4 @@
}
}
}
}
}

0 comments on commit f3d9804

Please sign in to comment.