mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-10 01:52:46 +00:00
The saturation and brightness square, and the Color Picker's color field it shares `widgets::color_field` with, gave screen readers its name and both values but took none of their actions, so an increment, decrement or set-value on it left the color as it was. The field is now a slider over its first component (saturation on the Color Wheel), from 0 to that component's units with a step of 1, as the hue ring is from 0 to 360. Increment and decrement move it one unit as → and ← do, and set-value sets it; the second component stays where it is. Without a marker the value reads 0 and a set value still applies, as on the ring. `screen_readers_read_and_move_the_ring_and_the_square` checks the square's range, step and actions, an increment, a set value and a decrement, and `the_color_pickers_field_takes_the_arrow_keys` checks an increment on the Color Picker's field.