Comments (3)
Hi @imnikhilp, the "no-rate" input is optional. If you remove it, then VoiceOver will be announcing "x of 5", but unfortunately all stars will be highlighted as the default option and this is why the "no-rate" was introduced.
At the same time, in the current setup, the reader always says how many stars we are currently focusing, so even if it says "3 of 6", it will still announce "2 stars" (or whatever someone sets as label). I leave it to your judgement, what is more accessible here. Probably there is no way I could fix both of these problems at the same time.
from starability.
Hi @szynszyliszys ,
I have removed first no-rate input element from html then on page init using jquery/javascript add inline style (background-position : '0 0') for all the labels so that they will not be highlighted. jquery code - $('.starability-basic > input ~ label').css('background-position', '0 0').
When user selects first radio button, remove inline style from label which was added on page init.It worked for me.
$('.starability-basic > input[type=radio]').on('change',function(){
$('.starability-basic > input ~ label').removeAttr('style');
}
It's hack but as its working for user I used it
from starability.
@imnikhilp Hi, I am happy that you made it work for yourself :)
from starability.
Related Issues (20)
- Rating starts with yellow stars instead of grey stars HOT 6
- Invisible input creates accessibility issue HOT 2
- Touch gesture support HOT 3
- Support for half stars HOT 6
- Star size HOT 3
- Focus ring is not demonstrated in example HTML HOT 1
- Better support for `disabled` attribute. HOT 3
- Stars invisible in high contrast mode HOT 5
- Regarding stability star 10 rating HOT 2
- Node throws SyntaxError: Unexpected token '.' for npm package css HOT 1
- Change size of stars? HOT 2
- ItΒ΄s possible to select half stars? HOT 1
- Problem when decreasing the size HOT 1
- Spacing between the stars
- Dosn't work in 2021? HOT 3
- Can't print the stars in page HOT 1
- fixing required in starability-heartbeat.css
- Multiple ratings on same page HOT 1
- Responsive Star Size HOT 1
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 starability.