Coder Social home page Coder Social logo

Comments (3)

szynszyliszys avatar szynszyliszys commented on June 23, 2024

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.

imnikhilp avatar imnikhilp commented on June 23, 2024

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.

szynszyliszys avatar szynszyliszys commented on June 23, 2024

@imnikhilp Hi, I am happy that you made it work for yourself :)

from starability.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.