Skip to content

Commit

Permalink
feat(admin-ui): Make number input increment/decrement buttons not tab…
Browse files Browse the repository at this point in the history
…bable-to (medusajs#3645)

* Make number input inc./dec. buttons not tabbable to

* Create changeset
  • Loading branch information
StephixOne authored Mar 30, 2023
1 parent a1ed1b6 commit e6b5859
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/selfish-grapes-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/admin-ui": patch
---

feat(admin-ui): Make number input increment/decrement buttons not tabbable-to
2 changes: 2 additions & 0 deletions packages/admin-ui/ui/src/components/molecules/input/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ const InputField = React.forwardRef<HTMLInputElement, InputProps>(
onMouseDown={(e) => e.preventDefault()}
className="text-grey-50 hover:bg-grey-10 focus:bg-grey-20 rounded-soft mr-2 h-4 w-4 cursor-pointer outline-none"
type="button"
tabIndex={-1}
>
<MinusIcon size={16} />
</button>
Expand All @@ -147,6 +148,7 @@ const InputField = React.forwardRef<HTMLInputElement, InputProps>(
onClick={onNumberIncrement}
className="text-grey-50 hover:bg-grey-10 focus:bg-grey-20 rounded-soft h-4 w-4 cursor-pointer outline-none"
type="button"
tabIndex={-1}
>
<PlusIcon size={16} />
</button>
Expand Down

0 comments on commit e6b5859

Please sign in to comment.