@aptre/flex-layout 0.1.8 → 0.1.9

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.
Files changed (2) hide show
  1. package/dist/index.mjs +10 -0
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -3651,13 +3651,23 @@ var TabButton = (props) => {
3651
3651
  )
3652
3652
  );
3653
3653
  }
3654
+ const onKeyDown = (event) => {
3655
+ if (event.key === "Enter" || event.key === " ") {
3656
+ event.preventDefault();
3657
+ onClick();
3658
+ }
3659
+ };
3654
3660
  return /* @__PURE__ */ React10.createElement(
3655
3661
  "div",
3656
3662
  {
3657
3663
  ref: selfRef,
3664
+ role: "button",
3665
+ tabIndex: 0,
3666
+ "aria-pressed": selected,
3658
3667
  "data-layout-path": path,
3659
3668
  className: classNames,
3660
3669
  onMouseDown,
3670
+ onKeyDown,
3661
3671
  onClick: onAuxMouseClick,
3662
3672
  onAuxClick: onAuxMouseClick,
3663
3673
  onContextMenu,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@aptre/flex-layout",
3
3
  "author": "Caplin Systems Ltd",
4
4
  "description": "A multi-tab docking layout manager",
5
- "version": "0.1.8",
5
+ "version": "0.1.9",
6
6
  "license": "ISC",
7
7
  "repository": {
8
8
  "type": "git",