From a50b55bf1bbc21bb5fa0f3ee3c5637cb9916bccb Mon Sep 17 00:00:00 2001 From: NatalieMac Date: Tue, 7 Dec 2021 16:06:10 -0800 Subject: [PATCH] Allow translation for aria label of close button --- src/featherlight.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/featherlight.js b/src/featherlight.js index b18d946..ec642c1 100644 --- a/src/featherlight.js +++ b/src/featherlight.js @@ -155,6 +155,7 @@ closeOnClick: 'background', /* Close lightbox on click ('background', 'anywhere' or false) */ closeOnEsc: true, /* Close lightbox when pressing esc */ closeIcon: '✕', /* Close icon */ + closeLabel: 'Close', /* Aria label for the close button */ loading: '', /* Content to show while initial content is loading */ persist: false, /* If set, the content will persist and will be shown again when opened again. 'shared' is a special value when binding multiple elements for them to share the same content */ otherClose: null, /* Selector for alternate close buttons (e.g. "a.close") */ @@ -183,7 +184,7 @@ $background = $(self.background || [ '
', '
', - '', '
' + self.loading + '
',