@@ -56,7 +56,7 @@ Object.assign(mejs.MepDefaults, {
56
56
* The path where the icon sprite is located
57
57
* @type {String }
58
58
*/
59
- iconSpritePath : 'mejs-a11y-icons.svg' ,
59
+ iconSpritePathA11y : 'mejs-a11y-icons.svg' ,
60
60
} ) ;
61
61
62
62
@@ -97,13 +97,13 @@ Object.assign(MediaElementPlayer.prototype, {
97
97
* @private
98
98
* @param {String } id - ID of the MediaElement player
99
99
* @param {String } classPrefix - Prefix for the class attribute
100
- * @param {String } iconSpritePath - Path to the SVG sprite containing icons
100
+ * @param {String } iconSpritePathA11y - Path to the SVG sprite containing icons
101
101
* @param {String } iconId - Specific ID of the icon within the SVG sprite
102
102
* @returns {String } The complete HTML string for the SVG element
103
103
*/
104
- _generateIconHtml ( id , classPrefix , iconSpritePath , iconId ) {
104
+ _generateIconHtml ( id , classPrefix , iconSpritePathA11y , iconId ) {
105
105
return `<svg xmlns="http://www.w3.org/2000/svg" id="${ id } " class="${ classPrefix } ${ iconId } " aria-hidden="true" focusable="false">
106
- <use xlink:href="${ iconSpritePath } #${ iconId } "></use></svg>` ;
106
+ <use xlink:href="${ iconSpritePathA11y } #${ iconId } "></use></svg>` ;
107
107
} ,
108
108
109
109
/**
@@ -113,7 +113,7 @@ Object.assign(MediaElementPlayer.prototype, {
113
113
*/
114
114
_createAudioDescription ( ) {
115
115
const t = this ;
116
- const iconHtml = t . _generateIconHtml ( t . id , t . options . classPrefix , t . options . iconSpritePath , 'icon-audio' ) ;
116
+ const iconHtml = t . _generateIconHtml ( t . id , t . options . classPrefix , t . options . iconSpritePathA11y , 'icon-audio' ) ;
117
117
const audioDescriptionTitle = mejs . i18n . t ( 'mejs.a11y-audio-description' ) ;
118
118
const audioDescriptionButton = document . createElement ( 'div' ) ;
119
119
audioDescriptionButton . className = `${ t . options . classPrefix } button ${ t . options . classPrefix } audio-description-button` ;
@@ -136,7 +136,7 @@ Object.assign(MediaElementPlayer.prototype, {
136
136
*/
137
137
_createVideoDescription ( ) {
138
138
const t = this ;
139
- const iconHtml = t . _generateIconHtml ( t . id , t . options . classPrefix , t . options . iconSpritePath , 'icon-video' ) ;
139
+ const iconHtml = t . _generateIconHtml ( t . id , t . options . classPrefix , t . options . iconSpritePathA11y , 'icon-video' ) ;
140
140
const videoDescriptionTitle = mejs . i18n . t ( 'mejs.a11y-video-description' ) ;
141
141
const videoDescriptionButton = document . createElement ( 'div' ) ;
142
142
videoDescriptionButton . className = `${ t . options . classPrefix } button ${ t . options . classPrefix } video-description-button` ;
0 commit comments