@linzjs/windows 5.4.0 → 5.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,7 +55,7 @@ export const PanelHeader = ({
55
55
  <div className={'WindowPanel-buttons'}>
56
56
  {extraRight}
57
57
  {(helpUrl || onHelpClick) && (
58
- <PanelHeaderButton aria-label={'Help'} href={helpUrl} onClick={onHelpClick} icon={'ic_help_outline'} />
58
+ <PanelHeaderButton aria-label={'Get help'} href={helpUrl} onClick={onHelpClick} icon={'ic_help_outline'} />
59
59
  )}
60
60
  </div>
61
61
  {(dockTo || !disablePopout || !disableClose) && <div className={'WindowPanel-divider-right'} />}
@@ -1,4 +1,4 @@
1
- import { LuiButton, LuiIcon } from '@linzjs/lui';
1
+ import { LuiButton, LuiIcon, LuiTooltip } from '@linzjs/lui';
2
2
  import { LuiIconName } from '@linzjs/lui/dist/assets/svg-content';
3
3
 
4
4
  export interface PanelHeaderButtonProps {
@@ -20,6 +20,12 @@ export const PanelHeaderButton = ({ 'aria-label': ariaLabel, href, icon, onClick
20
20
  onTouchStart: onClick,
21
21
  }}
22
22
  >
23
- <LuiIcon name={icon} alt={ariaLabel} size={'md'} />
23
+ {ariaLabel ? (
24
+ <LuiTooltip content={ariaLabel} placement={'bottom'}>
25
+ <LuiIcon name={icon} alt={ariaLabel} size={'md'} />
26
+ </LuiTooltip>
27
+ ) : (
28
+ <LuiIcon name={icon} alt={ariaLabel} size={'md'} />
29
+ )}
24
30
  </LuiButton>
25
31
  );
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "popout"
14
14
  ],
15
15
  "main": "./dist/index.ts",
16
- "version": "5.4.0",
16
+ "version": "5.4.2",
17
17
  "peerDependencies": {
18
18
  "@linzjs/lui": ">=21",
19
19
  "lodash-es": ">=4",
@@ -51,7 +51,7 @@
51
51
  "dependencies": {
52
52
  "@emotion/cache": "^11.14.0",
53
53
  "@emotion/react": "^11.14.0",
54
- "@emotion/styled": "^11.14.1",
54
+ "@emotion/styled": "11.14.0",
55
55
  "@types/uuid": "^10.0.0",
56
56
  "lodash-es": ">=4",
57
57
  "react-rnd": "^10.5.2",