-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[4.0] which scss file? #19694
Comments
Same goes for bootstrap:
Basically everything where bootstrap is using animation. I think this should be a PR upstream (the good part of using external library for our base css)... |
+1 on fixing upstream. We should only patch if they reject it. |
And to add something more, since I spent some time reverse engineering Bootstrap js, if you patch the .close class to not have any animation if the os dictates that, then you have a very interesting effect in modals: they never close 😂. Same goes for some other components. This will be interesting for BS to implement, since the changes are affecting the js functionality! |
I'm going to say due to the amount of animations that are part of or will be part of J4, that this should not be done. We dont support AAA so I do not want to justify the additional CSS. There are browser extensions that those with disabilities can installed to apply for every site |
If we can support something (and I believe we can) then we should irrespective of it being A, AA or AAA For now I will submit it upstream BUT if someone isnt using bootstrap there would still be an issue? PS I remember seeing a doc about setting up and contributing to J4 scss etc but I cant find it |
Yes ios and safari have the motion stuff built in BUT they need the site to support it for it to work - thats what this change would do. 6 lines of scss is hardly a big amount of code to add in order to improve our accessibility. |
@MikeRogers0 of UK Gov Digital Services has already opened an issue upstream with bootstrap so hopefully it can/will be resolved upstream twbs/bootstrap#25249 I would like to keep this open until then |
@brianteeman I've opened a PR for that issue now ( twbs/bootstrap#25641 ) 👍 Also, I don't work for UK Gov Digital Services - I just open issues / PRs to their codebase every now and then ;) |
@MikeRogers0 thanks I will test it |
Closing it here as it looks like it is going to be merged upstream |
@brianteeman just to let you know that all custom elements will implement this as well |
That's great. Awesome to see an issue start at a Drupal sprint and move to Joomla and bootstrap. This is what Opensource is all about. |
Yup, btw already in joomla’s prs https://github.com/joomla/joomla-cms/pull/19677/files#diff-1ef0c6126f72d7b87e3a5b8eb81898b5R122 |
This wasn't answered yet. My view is it's better to keep accessibility as part of the main CSS. Don't relegate accessibility to a separate file, because...
This assumes it's code under your control, of course. In the case where Joomla is using Bootstrap, it makes sense to work on fixes upstream., and that entails following their policy on how code is organized. I'm not sure about the part for making it available to the installer, because I don't know how Joomla's templates/themes work there. This might be an area where you end up with some duplicated code, but I'd guess that would be the case already, for installer CSS which isn't related to a11y...?
"Should not be done" is very harsh to your users. Similar points have been made about supporting
Which ones? I'm not aware of any extensions that let a user disable CSS animations easily. There are lots of browser extensions which stop animated GIFs, audio, and video. Extensions for managing user styles can do it, but you need to understand CSS. |
@fuzzbomb this specific issue was fixed upstream by bootstrap. Your other detailed comments are however greatly appreciated. |
WCAG 2.1 introduces Success Criterion 2.2.9 Animation from Interactions (level AAA), it should be possible to disable the animation. Safari and ios have options that a user can set for this and we can support this with a media query for example.
Bootstrap has a class progress-bar-animated which we use in:
It is an easy fix to apply I just dont know which file to put it in so that it will be available in the installer, admin and front end templates. Advice please perhaps even a separate file for a11y hacks?
The text was updated successfully, but these errors were encountered: