Skip to content

Commit

Permalink
master - fix font family for menu header buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
hexa-3d committed Jun 17, 2024
1 parent 624434c commit c5f349e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/main.bundle.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ var Accessibility = /*#__PURE__*/function () {
type: 'button',
attrs: {
'class': "_menu-close-btn _menu-btn ".concat(this.options.icon.fontClass),
'style': "font-family: ".concat(this.options.icon.fontFamily),
'title': this.options.hotkeys.enabled ? this.parseKeys(this.options.hotkeys.keys.toggleMenu) : this.options.labels.closeTitle
},
children: [{
Expand All @@ -450,6 +451,7 @@ var Accessibility = /*#__PURE__*/function () {
type: 'button',
attrs: {
'class': "_menu-reset-btn _menu-btn ".concat(this.options.icon.fontClass),
'style': "font-family: ".concat(this.options.icon.fontFamily),
'title': this.options.labels.resetTitle
},
children: [{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "accessibility",
"version": "5.1.4",
"version": "5.1.5",
"description": "add accessibility to your website",
"main": "index.js",
"exports": {
Expand Down
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@ export class Accessibility implements IAccessibility {
type: 'button',
attrs: {
'class': `_menu-close-btn _menu-btn ${this.options.icon.fontClass}`,
'style': `font-family: ${this.options.icon.fontFamily}`,
'title': this.options.hotkeys.enabled ? this.parseKeys(this.options.hotkeys.keys.toggleMenu) : this.options.labels.closeTitle
},
children: [
Expand All @@ -825,6 +826,7 @@ export class Accessibility implements IAccessibility {
type: 'button',
attrs: {
'class': `_menu-reset-btn _menu-btn ${this.options.icon.fontClass}`,
'style': `font-family: ${this.options.icon.fontFamily}`,
'title': this.options.labels.resetTitle
},
children: [
Expand Down

0 comments on commit c5f349e

Please sign in to comment.