• Devlin Cronin's avatar
    [Extensions A11y] Update a11y text for inline installation dialog · 2d2f869c
    Devlin Cronin authored
    The extension inline install dialog contains a section for the webstore
    ratings. This is rendered as a star rating (n / 5 filled stars) and a
    user count displayed in parentheses. For example,
    ***** (345)
    
    Unfortunately, the accessible text for this is lacking - each star
    (filled or not) simply says "graphic", followed by the number. So the
    content read by a screen reader would be:
    "graphic graphic graphic graphic graphic 345"
    which is very unhelpful.
    
    Introduce a custom view for the ratings section, which hides the star
    graphics and the user label from the accessibility tree. Instead,
    provide custom accessible text to give meaning. Now, the screen reader
    will read:
    "Rated 5.0 by 345 users"
    
    Bug: 747624
    
    Change-Id: I96d829efd098cc6795389b3190f0c2a901f55a93
    Reviewed-on: https://chromium-review.googlesource.com/782711
    Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
    Reviewed-by: default avatarTrent Apted <tapted@chromium.org>
    Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#520693}
    2d2f869c
extension_install_prompt.h 13.9 KB