Page 1 of 1
Rating cancel icon
Posted: 31 Mar 2017, 20:06
by FkJ
On modena theme, the rating cancel icon is rendered as a thumbs down icon. This can confuse users...
Could you please replace it with a cancel icon?
Regular theme rating:
https://www.primefaces.org/showcase/ui/ ... ting.xhtml
Modena rating:
https://www.primefaces.org/eos/modena/forms.xhtml
Re: Rating cancel icon
Posted: 03 Apr 2017, 09:26
by mert.sincan
I think you can override cancel icon. Please try;
Code: Select all
.ui-rating-cancel a {
background-image: ...
}
Re: Rating cancel icon
Posted: 18 May 2017, 16:10
by FkJ
It works, but I would appreciate an official solution, since my custom icon is not displayed correctly and it doesn't matches the other icons from the theme.
Re: Rating cancel icon
Posted: 18 May 2017, 16:49
by mert.sincan
Please try;
Code: Select all
<style type="text/css">
body .ui-rating-cancel a {
background-image: none !important;
font-family: 'Modena';
text-indent: initial;
speak: none;
font-size: 20px !important;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
width: 20px !important;
height: 20px !important;
color: #E53935;
}
body .ui-rating-cancel-hover a {
opacity: .7;
}
body .ui-rating-cancel a:before {
content: "\e287"; /* You can use icon codes in "Modena Material Font Icons" section at https://www.primefaces.org/eos/modena/font-icons.xhtml */
}
</style>
Re: Rating cancel icon
Posted: 18 May 2017, 20:25
by FkJ
Looks good, thanks.
Re: Rating cancel icon
Posted: 19 May 2017, 10:20
by mert.sincan
Glad to hear, thanks for the update!