Comments (7)
Please also try to add !important on padding value.
from ionic2-rating.
Hey, @cj1240
Could you please show me your template and scss files?
from ionic2-rating.
# This is my scss files:
ul {
padding: 0px;
&.rating li {
padding: 1px 1px;
background: none;
color: #387ef5;
ion-icon {
font-size: 15px;
}
}
}
# **This is my template:**
<rating [(ngModel)]="rate"
readOnly="false"
max="5"
emptyStarIconName="star-outline"
halfStarIconName="star-half"
starIconName="star"
nullable="false"
(ngModelChange)="onModelChange($event)">
#The problem is no matter how I modify the &.rating li padding value,it’s doesn’t work:
&.rating li {
padding: 1px 1px;}
&.rating li {
padding: 10px 10px;}
As shown above,when I running, the padding in star,it's look the same style:
from ionic2-rating.
they are the same style:
but i want to get the following style:
And now I can only modify the value from manually operated,if I delete the padding just like the following pic,I can got the right result (PS: I used the google chrome )
from ionic2-rating.
It can happen when you change the page name or selector and forget to change it in scss file.
from ionic2-rating.
@andrucz Thank you very much! I got it when I add !important on padding value.It's OK!
This tool is very easy to use,I will use it in my team! Thanks!!
Best regards!
from ionic2-rating.
Thanks, @cj1240
I am glad to hear that.
from ionic2-rating.
Related Issues (20)
- Set readonly Dynamically HOT 1
- Ionic 3: select one rating update them all HOT 1
- Isn't updating the rate value HOT 17
- ionic2-rating integration HOT 2
- typescript error HOT 2
- Starting with x stars painted HOT 4
- Im trying to remove padding and margin. HOT 2
- Not display inside ion-item HOT 1
- no half start HOT 5
- Does not work when I click in the same start HOT 7
- Getting error module not found HOT 1
- How a user give half star rating HOT 5
- Can I do a loop? HOT 3
- Rating Component Not Visible HOT 1
- Doesn't work with ngFor HOT 2
- Can't bind to 'ngModel' since it isn't a known property of 'input' HOT 1
- rating is not a known element HOT 1
- Won't work with Ionic 4 HOT 7
- Changing the star icon in ionic2-rating plugin HOT 1
- Can not set different font size of icon of rating star
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ionic2-rating.