Skip to content

Commit

Permalink
Update frontend/demo/component/menubar/react/menu-bar-icons.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Tomi Virkki <[email protected]>
  • Loading branch information
mshabarov and tomivirkki authored Apr 25, 2024
1 parent 0d96dc5 commit 343dc7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/demo/component/menubar/react/menu-bar-icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import '@vaadin/icons';

function createItem(iconName: string, text: string, isChild = false) {
const iconStyle: React.CSSProperties = {
width: isChild ? 'var(--lumo-icon-size-s)' : 'auto',
height: isChild ? 'var(--lumo-icon-size-s)' : 'auto',
marginRight: isChild ? 'var(--lumo-space-s)' : 0
width: isChild ? 'var(--lumo-icon-size-s)' : '',
height: isChild ? 'var(--lumo-icon-size-s)' : '',
marginRight: isChild ? 'var(--lumo-space-s)' : '',
};

let ariaLabel = '';
Expand Down

0 comments on commit 343dc7b

Please sign in to comment.