bootstrap/site/_includes
Patrick H. Lauke c031584bcd
SVG accessibility fixes (#27826)
* SVG accessibility fixes

- add `focusable="false"` to all SVGs, to stop IE from including the `<svg>` in its default focus cycle
- completely hide decorative SVGs using `aria-hidden="true"`
- add `role="img"` to meaningful/"content" SVGs, ensure they have an appropriate `<title>` and/or `aria-label`
- simplify placeholder default title

* Simplify usage of placeholder.svg in the docs

- in most cases, no need for separate/redundant text and title (now that we make text itself part of the alternative text explicitly)
- no need (expect in rare cirumstances) to describe the placeholder image (unless the look of the image is important/the actual content, as is the case with the image thumbnail class)

* Simplify example.html rewriting of <svg> to <img> code sample

- as the `alt` for the placeholder isn't really important, just add an ellipsis instead (otherwise, to be correct, we'd have to construct the whole "title+text" construct like we do now in the
placeholder.svg itself

* Change svgo configuration to retain role attribute and add/force focusable=false

- regarding `focusable=false`, see https://github.com/svg/svgo/issues/1011 (which would be the "proper" SVGO fix) and the (hacky) solution https://github.com/svg/svgo/pull/817
2018-12-13 13:09:47 +00:00
..
icons SVG accessibility fixes (#27826) 2018-12-13 13:09:47 +00:00
ads.html new url 2018-07-11 23:30:46 -07:00
analytics.html Move analytics to an include file. 2018-11-09 15:02:42 +02:00
bugify.html Reindent. 2018-11-20 21:31:28 +02:00
callout-danger-async-methods.md Revert "Use h5 for callouts so that they are not included in ToC." 2018-11-28 21:09:50 +02:00
callout-info-mediaqueries-breakpoints.md Reorganize docs for easier deploys 2018-07-11 23:30:46 -07:00
callout-info-prefersreducedmotion.md Add Sass variable for prefers-reduced-motion, add callout to affected components (#27581) 2018-11-03 19:23:26 +01:00
callout-warning-color-assistive-technologies.md Reorganize docs for easier deploys 2018-07-11 23:30:46 -07:00
callout.html Remove no_toc_section. 2018-11-28 21:09:50 +02:00
docs-navbar.html Fix a few links. 2018-10-14 08:17:40 +03:00
docs-sidebar.html docs-sidebar.html: remove commented out code. 2018-11-20 21:31:28 +02:00
example.html SVG accessibility fixes (#27826) 2018-12-13 13:09:47 +00:00
favicons.html Reorganize docs for easier deploys 2018-07-11 23:30:46 -07:00
footer.html Reorganize docs for easier deploys 2018-07-11 23:30:46 -07:00
header.html Move analytics to an include file. 2018-11-09 15:02:42 +02:00
scripts.html Revert "Replace anchor.js with jekyll-anchor-headings." 2018-11-23 15:28:39 +02:00
skippy.html Rename everything to skippy and center skippy (#27420) 2018-10-15 14:19:41 +03:00
social.html Reorganize docs for easier deploys 2018-07-11 23:30:46 -07:00
stylesheet.html Add an examples layout. 2018-11-09 15:02:42 +02:00