You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
code examples: Removing text-shadow on the AngularJS bits will improve readability #224
On https://angularjs.org, the styling on the AngularJS bits (tags, attributes, placeholders) in the code examples include a white colored text-shadow on a light blue background. This makes text difficult to read from 2-3ft (for example, a desktop monitor).
Expected / new behavior:
The text doesn't need the white text-shadow. The light blue background is enough to identify it as AngularJS related.
Minimal reproduction of the problem with instructions:
What is the motivation / use case for changing the behavior?
Changing will improve usability and possibly accessibility.
Environment
Chrome 65, Firefox 59, Ubuntu 16.04
Angular version: NA
Browser:
- [x ] Chrome (desktop) version 65
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [x ] Firefox version 59
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Node version: NA
- Platform: Linux
Others:
I think the styles should be changed wherever that light blue background is applied (i.e. docs.css afaict).
I would also experiment with a lighter shade of blue (instead of or in addition to removing the text shadow) 😁
Activity
frederikprijck commentedon Mar 19, 2018
@gkalpak As mentioned angular/angular.js#16496 (comment) the styles need to be overridden and not modified, right?
gkalpak commentedon Mar 19, 2018
I think the styles should be changed wherever that light blue background is applied (i.e. docs.css afaict).
I would also experiment with a lighter shade of blue (instead of or in addition to removing the text shadow) 😁
manjitkarve commentedon Mar 19, 2018
Hi,
Apologies if I'm speaking out of turn. Removing the text-shadow and darkening the foreground text (to #132448) also works:

Making the light-blue lighter will reduce its contrast against the grey background which is probably not good from a11y point of view.
Just my 2c.
Regards,
Manjit