diff --git a/content/patterns/radio/examples/radio-rating.html b/content/patterns/radio/examples/radio-rating.html index 6be2fc6161..05d94eced9 100644 --- a/content/patterns/radio/examples/radio-rating.html +++ b/content/patterns/radio/examples/radio-rating.html @@ -36,7 +36,7 @@
Similar examples include:
aria-valuetext
to communicate current and maximum value of a rating input for a five star rating scale.aria-valuetext
to make it easy for assistive technology users to understand the meaning of the current value chosen on a ten-point satisfaction scale.aria-activedescendant
for managing keyboard focus.tabindex
for managing keyboard focus.Similar examples include:
aria-orientation
to specify vertical orientation and aria-valuetext
to communicate unit of measure for a temperature input.aria-valuetext
to make it easy for assistive technology users to understand the meaning of the current value chosen on a ten-point satisfaction scale.aria-valuetext
to communicate current and maximum values of time in media to make the values easy to understand for assistive technology users by converting the total number of seconds to minutes and seconds.Following is an example of a rating input that demonstrates the Slider Pattern. - This rating widget employs a slider because the slider pattern supports step values of any size. - This particular input enables half-star steps. - A typical five-star rating widget that allows only five possible values could instead be implemented as a radio group. + This rating widget employs a slider because it enables users to choose from ten rating values, which is a relatively large number of choices for users to navigate. + For inputs with seven or fewer choices, another pattern that could be used is radio group as demonstrated by the + Rating Radio Group Example. + However, when there are more than seven choices, other patterns provide additional keyboard commands that significantly increase efficiency for users who rely on keyboard navigation to perceive options and make a selection. + These include + slider, + spin button, + combobox, + and listbox.
Similar examples include:
aria-orientation
to specify vertical orientation and aria-valuetext
to communicate unit of measure for a temperature input.aria-valuetext
to communicate current and maximum values of time in media to make the values easy to understand for assistive technology users by converting the total number of seconds to minutes and seconds.aria-valuetext
property to communicate both the current and maximum values.
+ To ensure assistive technology users correctly understand the meaning of the current value, this example uses the
+ aria-valuetext
+ property to communicate the current value, maximum value, and the meaning of the maximum value (Extremely Satisfied). However, since repeating the maximum value every time the slider value changes is potentially distracting, the maximum value is included in
aria-valuetext
only when the slider is initialized and when the thumb loses keyboard focus.
currentcolor
value for the stroke
property of each inline SVG polygon
element.
- To enable the high contrast background color to be the used as the contrasting color when a star is not fully or partially filled, the fill-opacity
attribute of the polygon
is set to zero.
+ To ensure the borders of the rating values and focus ring have sufficient contrast with the background when high contrast settings invert colors, the color of the borders is synchronized with the color of the text content using a CSS media query selector (e.g. @media (forced-colors: active)
) .
+ For example, the color of the rating value borders is set to match the link foreground color of high contrast mode text by specifying the CSS canvas
and linkText
values for the stroke
and fill
properties of each inline SVG rect
and text
element.
If specific colors were used to specify the stroke
and fill
properties, the color of these elements would remain the same in high contrast mode, which could lead to insufficient contrast between them and their background or even make them invisible if their color were to match the high contrast mode background.forced-color-adjust
property set to the value auto
for the currentcolor
value to be updated in high contrast modes.
- Some browsers do not use auto
for the default value.auto
for the default value.
+
aria-valuemax="5"
+ aria-valuemax="10"
div
@@ -227,7 +257,7 @@ div
3 of 5 stars.
0
, 1
, or 10
, provides the name of the value.seven out of 10 where 10 is extremely satisfied.
aria-labelledby="IDREF"
+ aria-labelledby="ID_REFERENCE"
div
diff --git a/content/patterns/slider/examples/slider-seek.html b/content/patterns/slider/examples/slider-seek.html
index 91f61c5082..5b589cd67f 100644
--- a/content/patterns/slider/examples/slider-seek.html
+++ b/content/patterns/slider/examples/slider-seek.html
@@ -49,10 +49,9 @@ Similar examples include:
aria-orientation
to specify vertical orientation and aria-valuetext
to communicate unit of measure for a temperature input.aria-valuetext
to communicate current and maximum values of time in media to make the values easy to understand for assistive technology users by converting the total number of seconds to minutes and seconds.aria-valuetext
to make it easy for assistive technology users to understand the meaning of the current value chosen on a ten-point satisfaction scale.Similar examples include:
aria-orientation
to specify vertical orientation and aria-valuetext
to communicate unit of measure for a temperature input.aria-valuetext
to make it easy for assistive technology users to understand the meaning of the current value chosen on a ten-point satisfaction scale.aria-valuetext
to communicate current and maximum values of time in media to make the values easy to understand for assistive technology users by converting the total number of seconds to minutes and seconds.aria-orientation
to specify vertical orientation and aria-valuetext
to communicate unit of measure for a temperature input.aria-valuetext
to communicate current and maximum value of a rating input for a five star rating scale.aria-valuetext
to make it easy for assistive technology users to understand the meaning of the current value chosen on a ten-point satisfaction scale.aria-valuetext
to communicate current and maximum values of time in media to make the values easy to understand for assistive technology users by converting the total number of seconds to minutes and seconds.