Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
fix: icon-btn class
Browse files Browse the repository at this point in the history
  • Loading branch information
kometenstaub committed Aug 11, 2022
1 parent 3f69fcf commit f4897b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default class TopBarButtonsPlugin extends Plugin {
) {
const { id, icon, name } = button;
const iconSize = getIconSize();
const classes = ['view-action', PLUGIN_CLASS_NAME];
const classes = ['view-action', 'icon-btn', PLUGIN_CLASS_NAME];

const buttonIcon = getButtonIcon(name, id, icon, iconSize, classes);

Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function getButtonIcon(
tag: 'a' | 'div' = 'a'
) {
const tooltip = getTooltip(name);
const buttonClasses = classes.concat(['icon-btn', id]);
const buttonClasses = classes.concat([id]);

const buttonIcon = createEl(tag, {
cls: buttonClasses,
Expand Down

0 comments on commit f4897b1

Please sign in to comment.