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

issue-1519: default disable a11y on touch devices #1520

Merged
merged 5 commits into from
May 18, 2017
Merged

Conversation

oliverfoster
Copy link
Member

fixes #1519

Copy link
Contributor

@moloko moloko left a comment

Choose a reason for hiding this comment

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

I've nothing whatsoever against the general concept of doing this; my only concern is that it means authors will have to set "_isDisabledOnTouchDevices": false in order to turn on accessibility which seems a little graceless to me... maybe just me though, anyone else have thoughts?

@andrewhosgood
Copy link
Contributor

Why not reverse the whole logic? Rather than _isDisabledOnTouchDevices (default true), perhaps _isEnabledOnTouchDevices (default false).

if (!Modernizr.touch || this.isActive() || Adapt.config.get("_accessibility")._isEnabledOnTouchDevices !== true) return;

@oliverfoster
Copy link
Member Author

That's fine if we can isolate which schemas need changing for the AT.

@oliverfoster
Copy link
Member Author

oliverfoster commented Apr 18, 2017

@brian-learningpool @taylortom @tomgreenfield any ideas where the config._accessibility._isDisabledOnTouchDevices schema entry lives?

we want to change it to _isEnabledOnTouchDevices

@dancgray
Copy link
Member

@oliverfoster
Copy link
Member Author

much obliged sir

@oliverfoster
Copy link
Member Author

just need an AT issue + PR.

@tomgreenfield
Copy link
Contributor

How to do all this without a breaking change...

@oliverfoster
Copy link
Member Author

what?

Copy link
Member

@NayanKhedkar NayanKhedkar left a comment

Choose a reason for hiding this comment

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

hi @oliverfoster

var isEnabledOnTouchDevices = config._isEnabledOnTouchDevices || (config._isDisabledOnTouchDevices === false);


var config = Adapt.config.get("_accessibility");
// Backwards compatibility for _isDisabledOnTouchDevices
var isEnabledOnTouchDevices = config._isEnabledOnTouchDevices || (config._isDisabledOnTouchDevices === false);
Copy link
Member

Choose a reason for hiding this comment

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

|| (config._isDisabledOnTouchDevices === false); is there any need to have this ??

Copy link
Member Author

Choose a reason for hiding this comment

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

Old courses which don't support _isEnabledOnTouchDevices but which do have _isDisabledOnTouchDevices set to false will still work as expected.

@tomgreenfield tomgreenfield merged commit be7d695 into master May 18, 2017
@tomgreenfield tomgreenfield deleted the issue/1519 branch May 18, 2017 10:31
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.

disabled accessibility on mobile as default
6 participants