-
Notifications
You must be signed in to change notification settings - Fork 231
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
Fix .visuallyhidden
not being actually hidden
#107
Conversation
Looks good to me. @colinrotherham, does this still work for your accessibility requirements? |
Hi @jlbooker, I'm against embedding CSS like this in JavaScript, for the following reasons:
This is a job for CSS, not script. |
@colinrotherham I completely agree that this is better off done with css. But, for better or for worse, this is not how typeahead.js currently works. Just search for '.css' calls over the code base. What happened with 0.11.1 release was a kind of semver abuse ("patch" and "minor" version number updates must be backwards compatible). Users already depend on typeahead.js doing it's stuff with inline css and do no expect elements popping out of nowhere with minor version update. Moreover, 0.11.1 does not provide any css files one could include to make typehead work as before out of the box. Changing approach to styling (disabling all inline styles and requiring users to include a css file) is feasible for a minor update behind an option (disabled by default for smooth updates) or for a major update (then we could explicitly state that user must include provided or custom css). |
@futpib Agreed. The status message should really have been a new feature, under a major release number. You'll need a Windows machine running a JAWS 40 minute trial or VoiceOver for Mac to verify this works before merging. Does everything work still? Like the other |
@futpib The semver abuse is my fault. I didn't realize the message was a breaking change, thus the minor version bump from 1.0.1 to 1.1.0. I'm in favor of merging this fix now to correct what we broke, and creating a separate issue to look at pulling the styles out into an actual stylesheet in a separate (major version numbered) release. Does that sound good to everyone? |
@jlbooker Sounds great. |
@futpib Just published version 1.1.1 on NPM. Have a look! |
@jlbooker can you please create a github release? |
@ricardobrandao Done! Sorry about that! |
Refs #106 and #104