diff --git a/examples/button/button.html b/examples/button/button.html index 61d01e4ee2..f665c0650c 100644 --- a/examples/button/button.html +++ b/examples/button/button.html @@ -41,7 +41,9 @@

Button Examples

+

Example

+
@@ -53,9 +55,39 @@

Example

Mute + + + @@ -154,7 +186,7 @@

Role, Property, State, and Tabindex Attributes

Javascript and CSS Source Code

-
diff --git a/examples/button/images/mute.svg b/examples/button/images/mute.svg deleted file mode 100644 index d0123a3613..0000000000 --- a/examples/button/images/mute.svg +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/examples/button/js/button.js b/examples/button/js/button.js index 5af4207faa..b27c129f65 100644 --- a/examples/button/js/button.js +++ b/examples/button/js/button.js @@ -7,8 +7,8 @@ 'use strict'; -var ICON_MUTE_URL = 'images/mute.svg#icon-mute'; -var ICON_SOUND_URL = 'images/mute.svg#icon-sound'; +var ICON_MUTE_URL = '#icon-mute'; +var ICON_SOUND_URL = '#icon-sound'; function init() { var actionButton = document.getElementById('action'); diff --git a/examples/js/examples.js b/examples/js/examples.js index 5517f1a72b..7b929d76d5 100644 --- a/examples/js/examples.js +++ b/examples/js/examples.js @@ -159,7 +159,10 @@ aria.widget.SourceCode.prototype.createCode = function ( switch (childNode.nodeType) { case Node.ELEMENT_NODE: - this.createCode(sourceCodeNode, childNode, indentLevel, false); + // To remove the SVG definitions from the example's source code, add the id `svg_definitions` + if (childNode.id !== 'svg_definitions') { + this.createCode(sourceCodeNode, childNode, indentLevel, false); + } break; case Node.TEXT_NODE: