Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FLUID-5536: Added the textfield stepper #823

Merged
merged 67 commits into from Apr 12, 2017

Conversation

jobara
Copy link
Member

@jobara jobara commented Mar 27, 2017

Updated the text size and line spacing panels to use the textfield stepper, and removed the jQuery UI version of the textfield slider.

https://issues.fluidproject.org/browse/FLUID-5536

Related Docs PR: fluid-project/infusion-docs#120

styki and others added 30 commits January 19, 2017 15:13
Cleaned up templates, context awareness checks, and tests.
Separating functionality that will be used by the stepper.
Recreated and updated the styling for the textfield slider, by copying the stylus styles
and writing new CSS for it.
Moved TextfieldControl to its own file, and renamed directory after it.
@jobara
Copy link
Member Author

jobara commented Apr 4, 2017

@cindyli I've addressed your comments and merged with master. Ready for more review.

@cindyli
Copy link
Member

cindyli commented Apr 10, 2017

When using VoiceOver with firefox, safari on Mac with the demo demos/textfieldControl/, tabbing on to the text field stepper, the initial value in the text field is not announced.

@cindyli
Copy link
Member

cindyli commented Apr 10, 2017

Text field sliders used in these examples are not working properly. Moving slider handle doesn't trigger the change of the text field value and vice versa.

examples/framework/preferences/conditionalAdjusters-singlePanel/
examples/framework/preferences/conditionalAdjusters/

@jobara
Copy link
Member Author

jobara commented Apr 11, 2017

@cindyli I think the issue with VoiceOver announcing the initial value of the stepper is a problem with support by the screen reader and/or browser. I had the same result with this example ( http://oaa-accessibility.org/example/33/ ). I also found that NVDA + Firefox worked, but JAWS + IE 11 didn't; for both the demo and OAA example.

<div>
<label class="mpe-slider-label"></label>
<div class="mpe-slider">
<input aria-labelledby="text-size-label" class="flc-textfieldSlider-slider fl-slider">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the value of aria-labelledby at line 4, 5 be mpe-slider-label rather than text-size-label?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, my above comment is wrong. mpe-slider-label is actually a css class on the label element at line 2. An id value should be added to that label element and be used as aria-labelledby values at line 4, 5.

@jobara
Copy link
Member Author

jobara commented Apr 12, 2017

@cindyli thanks for catching the aria-labelledby bug. It's been fixed and is ready for more review.

@cindyli
Copy link
Member

cindyli commented Apr 12, 2017

Running tests/framework-tests/preferences/html/Panels-test.html hangs at test #10 - Test the text sizer settings panel: Test the rendering of the text size panel.

Explicitly waiting for afterRender
@jobara
Copy link
Member Author

jobara commented Apr 12, 2017

@cindyli there was a race condition with the tests. I've fixed that and ready for more review.

@cindyli
Copy link
Member

cindyli commented Apr 12, 2017

The disabled text field stepper buttons disappear when a high contrast theme is on:

screen shot 2017-04-12 at 2 58 01 pm

@jobara
Copy link
Member Author

jobara commented Apr 12, 2017

@cindyli that's by design. For high contrast it's hard to have a "greyed" out version for the disabled button, and we were thinking that other methods like adding lines through make it appear more salient.

@cindyli cindyli merged commit b38bb0d into fluid-project:master Apr 12, 2017
@cindyli
Copy link
Member

cindyli commented Apr 12, 2017

Merged at 365e884

@jobara jobara deleted the FLUID-5536 branch April 13, 2017 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants